Add dataset card README
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- other
|
| 5 |
+
tags:
|
| 6 |
+
- openai
|
| 7 |
+
- api
|
| 8 |
+
- gateway
|
| 9 |
+
- modelflare
|
| 10 |
+
- curl
|
| 11 |
+
- examples
|
| 12 |
+
pretty_name: Modelflare API Examples
|
| 13 |
+
size_categories:
|
| 14 |
+
- n<1K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Modelflare API Examples
|
| 18 |
+
|
| 19 |
+
Small, documentation-oriented request sketches for the [Modelflare](https://modelflare.dev/?utm_source=huggingface&utm_medium=dataset&utm_campaign=api_examples) AI API gateway.
|
| 20 |
+
|
| 21 |
+
**中文:** 面向文档的请求示例(无真实密钥)。模型 id 必须已在 key 所属分组开通;实时目录以[控制台](https://modelflare.dev/?utm_source=huggingface&utm_medium=dataset&utm_campaign=api_examples)为准。
|
| 22 |
+
|
| 23 |
+
## Files
|
| 24 |
+
|
| 25 |
+
| File | Description |
|
| 26 |
+
| --- | --- |
|
| 27 |
+
| `data/chat_completions_examples.jsonl` | 5–8 Chat / Responses / Images-style request JSON lines (placeholders only) |
|
| 28 |
+
| `data/endpoint_map.json` | API family → path map from [endpoints guide](https://docs.modelflare.dev/guides/endpoints/) |
|
| 29 |
+
|
| 30 |
+
## Base URL
|
| 31 |
+
|
| 32 |
+
- OpenAI-compatible: `https://modelflare.dev/v1`
|
| 33 |
+
- Anthropic / Claude Code: `ANTHROPIC_BASE_URL=https://modelflare.dev` (**not** `/v1`)
|
| 34 |
+
- Gemini CLI: `GOOGLE_GEMINI_BASE_URL=https://modelflare.dev`
|
| 35 |
+
|
| 36 |
+
Auth: `Authorization: Bearer YOUR_MODELFLARE_API_KEY` (omit or placeholder in this dataset — **never** commit real keys).
|
| 37 |
+
|
| 38 |
+
## Related Hub content
|
| 39 |
+
|
| 40 |
+
- [Modelflare/start](https://huggingface.co/spaces/Modelflare/start)
|
| 41 |
+
- [Modelflare/api-recipes](https://huggingface.co/spaces/Modelflare/api-recipes)
|
| 42 |
+
- [Modelflare/coding-agents](https://huggingface.co/spaces/Modelflare/coding-agents)
|
| 43 |
+
- [Modelflare/openai-sdk](https://huggingface.co/spaces/Modelflare/openai-sdk)
|
| 44 |
+
- Collection: [modelflare-getting-started](https://huggingface.co/collections/Modelflare/modelflare-getting-started)
|
| 45 |
+
|
| 46 |
+
## Notes
|
| 47 |
+
|
| 48 |
+
- Example chat model id in snippets: `grok-4.7` (must be enabled on your group).
|
| 49 |
+
- Image / video fields vary by model — see docs; use a `media` group key for media.
|
| 50 |
+
- No prices or benchmarks in this dataset; check the console for live pricing.
|