Skip to content
Developer API2 min read

Prepare your first API request

Start with a small text request and a temporary Test key to confirm authentication and response handling. You need the correct environment’s API base URL and an identifier permitted for the account/key.

  1. Discover published choices with GET /api/v1/models and Authorization: Bearer.
  2. Select a returned identifier permitted by the key/project and account tier.
  3. Send a small text body to POST /api/v1/responses with JSON content.
  4. Check the response status, request ID and mock charge, not just HTTP 200.
  5. To test streaming, set stream: true, read complete events and require a terminal success/failure outcome.

Example request body:

{
"model": "YOUR_ALLOWED_MODE_ALIAS",
"input": "Explain what a project brief contains in three sentences.",
"max_output_tokens": 128,
"stream": false,
"store": false
}

Replace the placeholder. Use https://api-chattermate-dev.chattermate.ai for development or https://api.chattermate.ai for production. This body is an example, not evidence of a new production/paid test.

Field Meaning
model A permitted published mode/model identifier
input Small text input for this first request
max_output_tokens Upper output-token bound; the deployed mode may clamp it
stream false for JSON, true for server-sent events
store false avoids requesting stored response content

Test keys do not verify live-provider generation or billing. Live requests require explicit account access, approved funding and budget. The API documentation has examples for Responses, Chat Completions and Messages.

The previous /api/chat/* key routes are retired by default. Do not use the older estimate/stream sequence for a new integration.

Check the current public contract before enabling less common output modes. A browser feature and a supported external API operation are not automatically the same thing.