数码小编的Blog

digitalocean API

对话API

curl https://inference.do-ai.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MODEL_ACCESS_KEY" \
-d '{
  "model": "openai-gpt-oss-120b",
  "messages": [
    {
      "role": "user",
      "content": "What is the capital of France?"
    }
  ]
}'

获取模型列表API

curl -X GET https://inference.do-ai.run/v1/models \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $MODEL_ACCESS_KEY"

模型列表

{
  "data": [
    {
      "created": 1752255238,
      "id": "alibaba-qwen3-32b",
      "object": "model",
      "owned_by": "digitalocean"
    },
    {
      "created": 1737056627,
      "id": "anthropic-claude-3-opus",
      "object": "model",
      "owned_by": "anthropic"
    },
    {
      "created": 1737056613,
      "id": "anthropic-claude-3.5-haiku",
      "object": "model",
      "owned_by": "anthropic"
    },
    {
      "created": 1726761051,
      "id": "anthropic-claude-3.5-sonnet",
      "object": "model",
      "owned_by": "anthropic"
    },
    {
      "created": 1743449238,
      "id": "anthropic-claude-3.7-sonnet",
      "object": "model",
      "owned_by": "anthropic"
    },
    {
      "created": 1753359599,
      "id": "anthropic-claude-opus-4",
      "object": "model",
      "owned_by": "anthropic"
    },
    {
      "created": 1753359599,
      "id": "anthropic-claude-sonnet-4",
      "object": "model",
      "owned_by": "anthropic"
    },
    {
      "created": 1738947921,
      "id": "deepseek-r1-distill-llama-70b",
      "object": "model",
      "owned_by": "digitalocean"
    },
    {
      "created": 1724446781,
      "id": "llama3-8b-instruct",
      "object": "model",
      "owned_by": "digitalocean"
    },
    {
      "created": 1736801780,
      "id": "llama3.3-70b-instruct",
      "object": "model",
      "owned_by": "digitalocean"
    },
    {
      "created": 1726761051,
      "id": "mistral-nemo-instruct-2407",
      "object": "model",
      "owned_by": "digitalocean"
    },
    {
      "created": 1753359599,
      "id": "openai-gpt-4.1",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "created": 1740436938,
      "id": "openai-gpt-4o",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "created": 1740436938,
      "id": "openai-gpt-4o-mini",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "created": 1754595084,
      "id": "openai-gpt-5",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "created": 1757445018,
      "id": "openai-gpt-5-mini",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "created": 1757445022,
      "id": "openai-gpt-5-nano",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "created": 1754595080,
      "id": "openai-gpt-oss-120b",
      "object": "model",
      "owned_by": "digitalocean"
    },
    {
      "created": 1754595075,
      "id": "openai-gpt-oss-20b",
      "object": "model",
      "owned_by": "digitalocean"
    },
    {
      "created": 1740436938,
      "id": "openai-o1",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "created": 1751565087,
      "id": "openai-o3",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "created": 1740436938,
      "id": "openai-o3-mini",
      "object": "model",
      "owned_by": "openai"
    }
  ],
  "object": "list"
}

Powered by wisp

10/3/2025
Related Posts
Quasar Alpha Optimus Alpha 免费模型API调用教程

Quasar Alpha Optimus Alpha 免费模型API调用教程

如何免费API调用Gemini 2.5 Pro Experimental

Read Full Story
英伟达deepseek-R1推理模型API使用教程

英伟达deepseek-R1推理模型API使用教程

如何调用英伟达部署的deepseek-R1推理模型API

Read Full Story
AI 大模型LLM 中转地址base_url收集

AI 大模型LLM 中转地址base_url收集

base_url是指API请求的服务器地址,它的作用通常是为了保障网络通畅

Read Full Story
© 数码小编 2025