GET
/
models
/
{model}
获取指定模型详情
curl --request GET \
  --url https://geekai.co/api/v1/models/{model} \
  --header 'Authorization: Bearer <token>'
{
  "id": "gpt-4",
  "name": "GPT-4",
  "type": "chat",
  "desc": "GPT-4是一个大规模语言模型...",
  "created": 1689127080,
  "owned_by": "openai",
  "context": 8192,
  "platform": {
    "name": "openai",
    "alias": "OpenAI",
    "website": "https://openai.com"
  },
  "is_free": true,
  "price": {
    "currency": "CNY",
    "unit": "mtokens",
    "input": 0.03,
    "output": 0.06,
    "cache_read": 0,
    "cache_write": 0,
    "audio_input": 0,
    "audio_output": 0,
    "draw_image": {
      "price": 0,
      "unit": "nums"
    },
    "web_search": {
      "price": 0,
      "unit": "times"
    },
    "discounts": [
      {
        "channel": "ha",
        "discount": 0.8,
        "desc": ""
      }
    ]
  }
}

请求/响应参数明细

Authorizations

Authorization
string
header
required

JWT认证token

Path Parameters

model
string
required

模型ID

Response

成功响应

id
string
required

模型唯一标识

Example:

"gpt-4"

name
string
required

模型显示名称

Example:

"GPT-4"

type
enum<string>
required

模型类型

Available options:
chat,
image,
audio,
video,
embedding
desc
string

模型详细描述

Example:

"GPT-4是一个大规模语言模型..."

created
integer

模型创建时间戳

Example:

1689127080

owned_by
string

模型所有者/提供商

Example:

"openai"

context
integer

上下文窗口大小

Example:

8192

platform
object

平台信息

is_free
boolean

是否免费

Example:

true

price
object

价格信息