|
Download README.md from Modelflare/api-examples: direct link, hf CLI and curl.
- Browser
- Download file 2.28 kB
-
https://huggingface.co/datasets/Modelflare/api-examples/resolve/main/README.md
- Command line
-
hf download hf://datasets/Modelflare/api-examples/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Modelflare/api-examples/resolve/main/README.md
2.28 kB
metadata
license: mit
task_categories:
- other
tags:
- openai
- api
- gateway
- modelflare
- curl
- examples
pretty_name: Modelflare API Examples
size_categories:
- n<1K
Modelflare API Examples
Small, documentation-oriented request sketches for the Modelflare 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 |
Base URL
- 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 onmodelflare.dev)
Auth: Authorization: Bearer YOUR_MODELFLARE_API_KEY (omit or placeholder in this dataset — never commit real keys).
Related Hub content
- Modelflare/start
- Modelflare/api-recipes
- Modelflare/coding-agents
- Modelflare/openai-sdk
- Blog: Modelflare/blog
- Collection: 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
mediagroup key for media. - The streaming line follows the OpenAI SDK
stream=Truepattern; 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.