---
title: "Get model config"
method: GET
path: "/api/model_config/{model}"
tags: ["modelconfig"]
---

# Get model config

`GET /api/model_config/{model}`

Returns a model config

## Path parameters

- `model` string, required

## Response `200`

OK

- object
  - `data` ModelModelConfig
    - `config` object
    - `created_at` string
    - `exclude_from_tests` boolean
    - `image_prices` object — map[size]price_per_image
    - `image_quality_prices` object — map[size]map[quality]price_per_image
    - `model` string
    - `owner` 'openai' | 'alibaba' | 'tencent' | 'xunfei' | 'deepseek' | 'moonshot' | 'minimax' | 'baidu' | 'google' | 'baai' | 'funaudiollm' | 'doubao' | 'fishaudio' | 'chatglm' | 'stabilityai' | 'netease' | 'ai360' | 'anthropic' | 'meta' | 'baichuan' | 'mistral' | 'openchat' | 'microsoft' | 'defog' | 'nexusflow' | 'cohere' | 'huggingface' | 'lingyiwanwu' | 'stepfun' | 'xai' | 'doc2x' | 'jina'
    - `price` ModelPrice
      - `cache_creation_price` number
      - `cache_creation_price_unit` integer
      - `cached_price` number
      - `cached_price_unit` integer
      - `image_input_price` number
      - `image_input_price_unit` integer
      - `input_price` number
      - `input_price_unit` integer
      - `output_price` number
      - `output_price_unit` integer
      - `per_request_price` number
      - `thinking_mode_output_price` number — when ThinkingModeOutputPrice and ReasoningTokens are not 0, OutputPrice and OutputPriceUnit will be overwritten
      - `thinking_mode_output_price_unit` integer
      - `web_search_price` number
      - `web_search_price_unit` integer
    - `retry_times` integer
    - `rpm` integer
    - `tpm` integer
    - `type` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
    - `updated_at` string
  - `message` string
  - `success` boolean

---

[API](https://skmtc.dev/labring/apis/ai-proxy-swagger-api.md) · [All operations](https://skmtc.dev/labring/apis/ai-proxy-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/labring/ai-proxy-swagger-api/revisions/fb33182ee5b6/schema)
