Chat Completions
FastRouter API Key. Get yours at https://fastrouter.ai
Format: Authorization: Bearer YOUR_API_KEY
Model ID in format 'provider/model'. Examples: openai/gpt-5.1, google/gemini-3-pro-preview, anthropic/claude-4.5-sonnet
anthropic/claude-4.5-sonnetControls randomness in responses. Lower values (0-0.7) make output more focused and deterministic. Higher values (0.8-2) make output more creative and random.
1Example: 0.7Maximum number of tokens to generate in the completion. Limits the length of the response.
1000Nucleus sampling parameter. Alternative to temperature. Lower values make output more focused.
1Example: 0.9Penalizes repeated tokens based on frequency. Positive values reduce repetition.
0Example: 0Penalizes tokens that have appeared. Positive values encourage new topics.
0Example: 0Enable streaming responses for real-time output. When true, responses are sent as Server-Sent Events (SSE).
falseExample: trueStop sequences where the model will stop generating. Can be a string or array of strings.
["\\n","END"]Array of tool/function definitions
Image aspect ratio for Nano Banana (google/gemini-2.5-flash-image). Supported ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
3:2Possible values: Natural-language description for audio generation (ace-step/prompt-to-audio). Describe the audio, music, or ambient sound to generate.
A lofi hiphop song with a chill vibe about a sunny day on the boardwalk.Duration of the audio clip in seconds for text-to-audio generation (ace-step/prompt-to-audio). Optional parameter.
5Successful chat completion response
Bad Request - Invalid parameters
Invalid Credentials - Your API key is invalid, disabled, or your OAuth session has expired. Check your credentials.
Rate Limited - You have exceeded your request limits (TPM/RPM). Slow down or increase your limits.
Internal Server Error
Last updated
