{"id": "chat-basic", "family": "chat_completions", "method": "POST", "url": "https://modelflare.dev/v1/chat/completions", "headers": {"Authorization": "Bearer YOUR_MODELFLARE_API_KEY", "Content-Type": "application/json"}, "body": {"model": "gpt-5.6-sol", "messages": [{"role": "user", "content": "Hello from Hugging Face"}]}, "notes": "Model id must be enabled on the key's group."} {"id": "chat-streaming", "family": "chat_completions", "method": "POST", "url": "https://modelflare.dev/v1/chat/completions", "headers": {"Authorization": "Bearer YOUR_MODELFLARE_API_KEY", "Content-Type": "application/json"}, "body": {"model": "gpt-5.6-sol", "messages": [{"role": "user", "content": "Say hi in one line"}], "stream": true}, "notes": "SSE stream; consume deltas like OpenAI SDK stream=True. Once content has been sent, the gateway does not replay the stream on another route."} {"id": "chat-system-prompt", "family": "chat_completions", "method": "POST", "url": "https://modelflare.dev/v1/chat/completions", "headers": {"Authorization": "Bearer YOUR_MODELFLARE_API_KEY", "Content-Type": "application/json"}, "body": {"model": "gpt-5.6-sol", "messages": [{"role": "system", "content": "Reply in one short sentence."}, {"role": "user", "content": "What is Modelflare?"}]}, "notes": "Standard multi-turn chat envelope."} {"id": "list-models", "family": "models", "method": "GET", "url": "https://modelflare.dev/v1/models", "headers": {"Authorization": "Bearer YOUR_MODELFLARE_API_KEY"}, "body": null, "notes": "Lists models the current key can call — not a full price catalog."} {"id": "responses-stub", "family": "responses", "method": "POST", "url": "https://modelflare.dev/v1/responses", "headers": {"Authorization": "Bearer YOUR_MODELFLARE_API_KEY", "Content-Type": "application/json"}, "body": {"model": "gpt-5.6-sol", "input": "Reply with one sentence confirming the model."}, "notes": "Used by Codex (wire_api=responses). Full setup: https://docs.modelflare.dev/guides/clients/codex/"} {"id": "images-minimal", "family": "images", "method": "POST", "url": "https://modelflare.dev/v1/images/generations", "headers": {"Authorization": "Bearer YOUR_MODELFLARE_API_KEY", "Content-Type": "application/json"}, "body": {"model": "gpt-image-2", "prompt": "A white cat runs through a neon-lit street in the rain", "size": "1024x1024", "n": 1}, "notes": "Documented gpt-image-2 example. Returns data[].b64_json. Fields vary by model. Use a Smart API Key or a media group key. Docs: https://docs.modelflare.dev/models/image/gpt-image-2/"} {"id": "video-create-seedance", "family": "video", "method": "POST", "url": "https://modelflare.dev/v1/videos", "headers": {"Authorization": "Bearer YOUR_MODELFLARE_API_KEY", "Content-Type": "application/json"}, "body": {"model": "seedance-2.5", "content": [{"type": "text", "text": "A cat walks through a sunlit room"}], "resolution": "720p", "duration": 5, "ratio": "16:9"}, "notes": "Async. Save id (compatibility responses may use task_id). Poll GET /v1/videos/{task_id} while status is queued or in_progress; stop at completed or failed. Download GET /v1/videos/{task_id}/content. Body is family-specific. Docs: https://docs.modelflare.dev/guides/video/seedance-task-query/"}