Add data/chat_completions_examples.jsonl and data/endpoint_map.json
Browse files
data/chat_completions_examples.jsonl
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"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."}
|
| 2 |
+
{"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."}
|
| 3 |
+
{"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."}
|
| 4 |
+
{"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."}
|
| 5 |
+
{"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/"}
|
| 6 |
+
{"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/"}
|
| 7 |
+
{"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/"}
|
| 8 |
+
{"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/"}
|
data/endpoint_map.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_url_openai_compatible": "https://modelflare.dev/v1",
|
| 3 |
+
"base_url_china_edgeone": "https://origin.modelflare.dev/v1",
|
| 4 |
+
"anthropic_base_url": "https://modelflare.dev",
|
| 5 |
+
"gemini_base_url": "https://modelflare.dev",
|
| 6 |
+
"auth_header": "Authorization: Bearer YOUR_MODELFLARE_API_KEY",
|
| 7 |
+
"source": "https://docs.modelflare.dev/guides/endpoints/",
|
| 8 |
+
"families": [
|
| 9 |
+
{
|
| 10 |
+
"family": "chat_completions",
|
| 11 |
+
"method": "POST",
|
| 12 |
+
"path": "/v1/chat/completions",
|
| 13 |
+
"use_for": "OpenAI-compatible chat"
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"family": "responses",
|
| 17 |
+
"method": "POST",
|
| 18 |
+
"path": "/v1/responses",
|
| 19 |
+
"use_for": "Codex and Grok Build"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"family": "anthropic_messages",
|
| 23 |
+
"method": "POST",
|
| 24 |
+
"path": "/v1/messages",
|
| 25 |
+
"base_url_note": "ANTHROPIC_BASE_URL=https://modelflare.dev (CLI appends Messages path)",
|
| 26 |
+
"use_for": "Claude Code"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"family": "images",
|
| 30 |
+
"method": "POST",
|
| 31 |
+
"path": "/v1/images/generations",
|
| 32 |
+
"use_for": "GPT Images, Wan Image, Seedream"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"family": "gemini_native",
|
| 36 |
+
"method": "POST",
|
| 37 |
+
"path": "/v1beta/models/{model}:generateContent",
|
| 38 |
+
"use_for": "Gemini CLI and Gemini image models"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"family": "video_create",
|
| 42 |
+
"method": "POST",
|
| 43 |
+
"path": "/v1/videos",
|
| 44 |
+
"use_for": "Create async video task"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"family": "video_poll",
|
| 48 |
+
"method": "GET",
|
| 49 |
+
"path": "/v1/videos/{task_id}",
|
| 50 |
+
"use_for": "Poll video task"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"family": "video_content",
|
| 54 |
+
"method": "GET",
|
| 55 |
+
"path": "/v1/videos/{task_id}/content",
|
| 56 |
+
"use_for": "Download video result"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"family": "seedance_assets",
|
| 60 |
+
"method": "POST",
|
| 61 |
+
"path": "/volc/asset/*",
|
| 62 |
+
"use_for": "Seedance asset management"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"family": "models",
|
| 66 |
+
"method": "GET",
|
| 67 |
+
"path": "/v1/models",
|
| 68 |
+
"use_for": "List models the current key can call"
|
| 69 |
+
}
|
| 70 |
+
]
|
| 71 |
+
}
|