api-examples / README.md
modelflaredev's picture
Upload README.md
3b4e9a4 verified
|
Raw History Blame Contribute Delete
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 on modelflare.dev)

Auth: Authorization: Bearer YOUR_MODELFLARE_API_KEY (omit or placeholder in this dataset — never commit real keys).

Related Hub content

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.