ZvenoAI
API Reference

List Model Providers

GET
/v1/models/{vendor}/{model}/providers

Возвращает список провайдеров для конкретной модели с информацией о ценах, поддерживаемых возможностях (streaming, tool use) и статусе.

Путь: /v1/models/{vendor}/{model}/providers (например, /v1/models/anthropic/claude-sonnet-4-20250514/providers).

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

vendor*string

Вендор модели (например, "openai", "anthropic", "google")

model*string

Название модели (например, "gpt-4o", "claude-sonnet-4-20250514")

Response Body

application/json

curl -X GET "http://localhost:8080/v1/models/string/string/providers"
{
  "model_id": "string",
  "model_slug": "string",
  "model_name": "string",
  "providers": [
    {
      "id": "string",
      "provider": "string",
      "provider_model_id": "string",
      "price_in_per_1k": "string",
      "price_out_per_1k": "string",
      "pricing": {
        "base": {
          "audio_per_1k": "string",
          "audio_output_per_1k": "string",
          "cache_read_per_1k": "string",
          "cache_write_per_1k": "string",
          "completion_per_1k": "string",
          "image_output": "string",
          "image_output_tokens_per_1k": "string",
          "prompt_per_1k": "string",
          "reasoning_per_1k": "string",
          "web_search": "string"
        },
        "variable_pricings": [
          {
            "pricing": {
              "audio_per_1k": "string",
              "audio_output_per_1k": "string",
              "cache_read_per_1k": "string",
              "cache_write_per_1k": "string",
              "completion_per_1k": "string",
              "image_output": "string",
              "image_output_tokens_per_1k": "string",
              "prompt_per_1k": "string",
              "reasoning_per_1k": "string",
              "web_search": "string"
            },
            "threshold": 0,
            "type": "prompt-threshold"
          }
        ],
        "per_request": {
          "image_output_rub": "string",
          "web_search_rub": "string"
        },
        "video": {
          "rules": [
            {
              "resolution": "string",
              "with_audio": true,
              "price_per_second_rub": "string"
            }
          ]
        },
        "image_prices": [
          {
            "component": "text_input",
            "unit": "tokens_1k",
            "variant": "string",
            "resolution": "string",
            "price_rub": "string",
            "basis": "supplier_rate"
          }
        ]
      },
      "median_latency_ms": 0,
      "supports_streaming": true,
      "supports_tools": true,
      "supports_response_format": true,
      "quantization": "string",
      "data_retention_policy": "string",
      "supported_parameters": [
        "string"
      ],
      "updated_at": "string",
      "endpoints": [
        {
          "tag": "string",
          "provider_name": "string",
          "pricing": {
            "base": {
              "audio_per_1k": "string",
              "audio_output_per_1k": "string",
              "cache_read_per_1k": "string",
              "cache_write_per_1k": "string",
              "completion_per_1k": "string",
              "image_output": "string",
              "image_output_tokens_per_1k": "string",
              "prompt_per_1k": "string",
              "reasoning_per_1k": "string",
              "web_search": "string"
            },
            "variable_pricings": [
              {
                "pricing": {
                  "audio_per_1k": "string",
                  "audio_output_per_1k": "string",
                  "cache_read_per_1k": "string",
                  "cache_write_per_1k": "string",
                  "completion_per_1k": "string",
                  "image_output": "string",
                  "image_output_tokens_per_1k": "string",
                  "prompt_per_1k": "string",
                  "reasoning_per_1k": "string",
                  "web_search": "string"
                },
                "threshold": 0,
                "type": "prompt-threshold"
              }
            ],
            "per_request": {
              "image_output_rub": "string",
              "web_search_rub": "string"
            },
            "video": {
              "rules": [
                {
                  "resolution": "string",
                  "with_audio": true,
                  "price_per_second_rub": "string"
                }
              ]
            },
            "image_prices": [
              {
                "component": "text_input",
                "unit": "tokens_1k",
                "variant": "string",
                "resolution": "string",
                "price_rub": "string",
                "basis": "supplier_rate"
              }
            ]
          },
          "context_length": 0,
          "max_completion_tokens": 0,
          "quantization": "string",
          "supported_parameters": [
            "string"
          ],
          "supports_implicit_caching": true,
          "uptime_last_1d": 0.1,
          "latency_last_30m_ms": 0.1,
          "throughput_last_30m_tps": 0.1,
          "service_tier": "string",
          "variant": "string"
        }
      ]
    }
  ]
}