Edit before sharing. X and supported device apps use this message. For Facebook or LinkedIn, copy it here and paste it into your post. These buttons share a link preview, not an uploaded media file. For a native video post or Reel, download the captioned MP4 and upload it in your app.
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.
Request sequence
Section titled “Request sequence”- Discover published choices with GET /api/v1/models and Authorization: Bearer.
- Select a returned identifier permitted by the key/project and account tier.
- Send a small text body to POST /api/v1/responses with JSON content.
- Check the response status, request ID and mock charge, not just HTTP 200.
- 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.
