File size: 2,330 Bytes
3ae24da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a92fdad
3ae24da
 
 
 
 
 
 
 
 
 
 
a92fdad
 
 
3ae24da
 
 
 
 
a92fdad
3ae24da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a92fdad
 
 
3ae24da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
  "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."
}