Add data/chat_completions_examples.jsonl and data/endpoint_map.json
Browse filesFiles changed (2)
- data/chat_completions_examples.jsonlAdded+8
- data/endpoint_map.jsonAdded+71
12345678{"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":"grok-4.7","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":"grok-4.7","messages":[{"role":"user","content":"Say hi in one line"}],"stream":true},"notes":"SSE stream; consume deltas like OpenAI SDK stream=True."}{"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":"grok-4.7","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":"anthropic-messages-sketch","family":"anthropic_messages","method":"POST","url":"https://modelflare.dev/v1/messages","headers":{"x-api-key":"YOUR_MODELFLARE_API_KEY","anthropic-version":"2023-06-01","Content-Type":"application/json"},"body":{"model":"claude-sonnet-5","max_tokens":256,"messages":[{"role":"user","content":"ping"}]},"notes":"Prefer Claude Code settings: ANTHROPIC_BASE_URL=https://modelflare.dev (no /v1). Guide: https://docs.modelflare.dev/guides/clients/claude-code/"}{"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":"YOUR_IMAGE_MODEL","prompt":"A white cat in neon rain","n":1},"notes":"Fields vary by model. Use a media group key. Docs: https://docs.modelflare.dev/models/image/"}{"id":"video-create-highlevel","family":"video","method":"POST","url":"https://modelflare.dev/v1/videos","headers":{"Authorization":"Bearer YOUR_MODELFLARE_API_KEY","Content-Type":"application/json"},"body":{"model":"YOUR_VIDEO_MODEL","prompt":"A calm ocean at sunrise"},"notes":"Async: poll GET /v1/videos/{task_id}, download GET /v1/videos/{task_id}/content. Envelope varies. Docs: https://docs.modelflare.dev/models/video/"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ "base_url_openai_compatible": "https://modelflare.dev/v1", "base_url_china_edgeone": "https://origin.modelflare.dev/v1", "anthropic_base_url": "https://modelflare.dev", "gemini_base_url": "https://modelflare.dev", "auth_header": "Authorization: Bearer YOUR_MODELFLARE_API_KEY", "source": "https://docs.modelflare.dev/guides/endpoints/", "families": [ { "family": "chat_completions", "method": "POST", "path": "/v1/chat/completions", "use_for": "OpenAI-compatible chat" }, { "family": "responses", "method": "POST", "path": "/v1/responses", "use_for": "Codex and Grok Build" }, { "family": "anthropic_messages", "method": "POST", "path": "/v1/messages", "base_url_note": "ANTHROPIC_BASE_URL=https://modelflare.dev (CLI appends Messages path)", "use_for": "Claude Code" }, { "family": "images", "method": "POST", "path": "/v1/images/generations", "use_for": "GPT Images, Wan Image, Seedream" }, { "family": "gemini_native", "method": "POST", "path": "/v1beta/models/{model}:generateContent", "use_for": "Gemini CLI and Gemini image models" }, { "family": "video_create", "method": "POST", "path": "/v1/videos", "use_for": "Create async video task" }, { "family": "video_poll", "method": "GET", "path": "/v1/videos/{task_id}", "use_for": "Poll video task" }, { "family": "video_content", "method": "GET", "path": "/v1/videos/{task_id}/content", "use_for": "Download video result" }, { "family": "seedance_assets", "method": "POST", "path": "/volc/asset/*", "use_for": "Seedance asset management" }, { "family": "models", "method": "GET", "path": "/v1/models", "use_for": "List models the current key can call" } ]}data/chat_completions_examples.jsonlAdded+8
data/endpoint_map.jsonAdded+71