Upload README.md
Browse files17 unmodified lines181920212223242526272829301 unmodified line3233343536373 unmodified lines4142434445464748495017 unmodified linesSmall, documentation-oriented request sketches for the [Modelflare](https://modelflare.dev/?utm_source=huggingface&utm_medium=dataset&utm_campaign=api_examples) AI API gateway.**中文:** 面向文档的请求示例(无真实密钥)。模型 id 必须已在 key 所属分组开通;实时目录以[控制台](https://modelflare.dev/?utm_source=huggingface&utm_medium=dataset&utm_campaign=api_examples)为准。## Files| File | Description || --- | --- || `data/chat_completions_examples.jsonl` | 5–8 Chat / Responses / Images-style request JSON lines (placeholders only) || `data/endpoint_map.json` | API family → path map from [endpoints guide](https://docs.modelflare.dev/guides/endpoints/) |## Base URL1 unmodified line- OpenAI-compatible: `https://modelflare.dev/v1`- Anthropic / Claude Code: `ANTHROPIC_BASE_URL=https://modelflare.dev` (**not** `/v1`)- Gemini CLI: `GOOGLE_GEMINI_BASE_URL=https://modelflare.dev`Auth: `Authorization: Bearer YOUR_MODELFLARE_API_KEY` (omit or placeholder in this dataset — **never** commit real keys).3 unmodified lines- [Modelflare/api-recipes](https://huggingface.co/spaces/Modelflare/api-recipes)- [Modelflare/coding-agents](https://huggingface.co/spaces/Modelflare/coding-agents)- [Modelflare/openai-sdk](https://huggingface.co/spaces/Modelflare/openai-sdk)- Collection: [modelflare-getting-started](https://huggingface.co/collections/Modelflare/modelflare-getting-started)## Notes- Example chat model id in snippets: `grok-4.7` (must be enabled on your group).- Image / video fields vary by model — see docs; use a `media` group key for media.- No prices or benchmarks in this dataset; check the console for live pricing.17 unmodified lines1819202122232425262728291 unmodified line313233343536373 unmodified lines41424344454647484950515217 unmodified linesSmall, documentation-oriented request sketches for the [Modelflare](https://modelflare.dev/?utm_source=huggingface&utm_medium=dataset&utm_campaign=api_examples) AI API gateway.## Files| File | Description || --- | --- || `data/chat_completions_examples.jsonl` | Chat, models, Responses, image, and video request JSON lines (placeholder key only) || `data/endpoint_map.json` | API family → path map from [endpoints guide](https://docs.modelflare.dev/guides/endpoints/) |## Base URL1 unmodified line- OpenAI-compatible: `https://modelflare.dev/v1`- Anthropic / Claude Code: `ANTHROPIC_BASE_URL=https://modelflare.dev` (**not** `/v1`)- Gemini CLI: `GOOGLE_GEMINI_BASE_URL=https://modelflare.dev`- Gemini native image: `POST /v1/models/{model}:generateContent` (Gemini CLI builds the same path under `/v1beta`, served only on `modelflare.dev`)Auth: `Authorization: Bearer YOUR_MODELFLARE_API_KEY` (omit or placeholder in this dataset — **never** commit real keys).3 unmodified lines- [Modelflare/api-recipes](https://huggingface.co/spaces/Modelflare/api-recipes)- [Modelflare/coding-agents](https://huggingface.co/spaces/Modelflare/coding-agents)- [Modelflare/openai-sdk](https://huggingface.co/spaces/Modelflare/openai-sdk)- Blog: [Modelflare/blog](https://huggingface.co/spaces/Modelflare/blog)- Collection: [modelflare-getting-started](https://huggingface.co/collections/Modelflare/modelflare-getting-started)## Notes- Example chat model ID in snippets: `gpt-5.6-sol`, the model used in the Modelflare Quickstart (it must be enabled on your group).- Image and video fields vary by model; see the model pages. Use a Smart API Key or a `media` group key for media.- The streaming line follows the OpenAI SDK `stream=True` pattern; the docs do not include a separate streaming example. Anthropic Messages are documented through Claude Code settings only, so no raw Anthropic request is included.- No prices or benchmarks in this dataset; check the console for live pricing.
README.md+6-4