Download data/endpoint_map.json from Modelflare/api-examples: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/datasets/Modelflare/api-examples/resolve/main/data/endpoint_map.json
- Command line
-
hf download hf://datasets/Modelflare/api-examples/data/endpoint_map.json
-
curl -L -o endpoint_map.json https://huggingface.co/datasets/Modelflare/api-examples/resolve/main/data/endpoint_map.json
2.33 kB
| { | |
| "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", | |
| "base_url_note": "ANTHROPIC_BASE_URL=https://modelflare.dev (site origin, not /v1); the Claude Code CLI appends the Messages path itself", | |
| "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": "/v1/models/{model}:generateContent", | |
| "use_for": "Gemini image models; also served on origin.modelflare.dev", | |
| "gemini_cli_note": "Gemini CLI builds the same path under /v1beta, which only modelflare.dev serves" | |
| }, | |
| { | |
| "family": "video_create", | |
| "method": "POST", | |
| "path": "/v1/videos", | |
| "use_for": "Create async video task (Seedance, Wan, Kling, and other async video models)" | |
| }, | |
| { | |
| "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" | |
| } | |
| ], | |
| "auth_note": "Send the Authorization header on every request, including video polling and downloads.", | |
| "image_video_keys": "Image and video work with a Smart API Key or a media group API key." | |
| } | |