핵심
모델 가져오기
모델의 기능, 가격 및 API 형식을 가져옵니다
경로 매개변수
modelstringpath필수
gpt-5.6-terra 또는 claude-sonnet-4-6과 같은 모델 ID입니다.
응답
idstring
모델 ID입니다.
objectstring
항상
model입니다.owned_bystring
모델 제조사입니다.
tokenlabobject
기능, 가격, 과금 단위, 컨텍스트 제한, 허용되는 API 형식, 작업 및 수명 주기 상태를 포함한 TokenLab 모델 정보입니다.
일반적인 tokenlab 필드는 다음과 같습니다:
capabilities: 텍스트, 이미지, 비디오, 오디오 및 기타 기능.pricing: 현재 공개 가격.max_input_tokens및max_output_tokens: 컨텍스트 및 출력 제한.accepted_request_formats: 지원되는 API 형식.supported_operations: 텍스트-이미지 변환 또는 이미지-비디오 변환과 같은 작업.lifecycle: 가용성, 출시일, 지원 종료일 또는 대체 모델.
일부 미디어 모델에는 권장 상태 및 업데이트 시간이 포함됩니다. 권장 사항은 가용성 및 성능에 따라 변경될 수 있으므로 순서를 하드코딩하지 마십시오.
예시
curl "https://api.tokenlab.sh/v1/models/gpt-5.6-terra"{
"id": "gpt-5.6-terra",
"object": "model",
"owned_by": "openai",
"tokenlab": {
"category": "chat",
"capabilities": ["coding", "json-mode", "prompt-cache", "reasoning", "tool-use", "vision"],
"accepted_request_formats": ["openai_chat_completions", "openai_responses"]
}
}알 수 없는 모델의 경우 404 model_not_found를 반환합니다.
curl -X GET "https://example.com/v1/models/string"{ "id": "string", "object": "model", "created": 0, "owned_by": "string", "tokenlab": { "aliases": [ "string" ], "deliveryAvailability": { "verified": true, "official": true, "operations": { "property1": { "verified": true, "official": true }, "property2": { "verified": true, "official": true } } }, "pricing": {}, "capabilities": [ "string" ], "providers": [ "string" ], "max_input_tokens": 0, "max_output_tokens": 0, "category": "string", "pricing_unit": "string", "cache_pricing": {}, "has_complex_pricing": true, "supported_operations": [ "string" ], "pricing_summary": {}, "pricing_provenance": {}, "lifecycle": { "stage": "active", "reason": "string", "replacement_model": "string", "released_at": "2019-08-24T14:15:22Z", "deprecated_at": "2019-08-24T14:15:22Z", "retired_at": "2019-08-24T14:15:22Z", "sunset_at": "2019-08-24T14:15:22Z", "latest": true, "latest_source": "auto", "latest_window_days": 0 }, "commercial": { "user_charge_policy": "paid", "free_reason": "platform", "free_until": "2019-08-24T14:15:22Z" }, "badges": [ { "key": "free", "tone": "green", "priority": 0, "tooltip": { "key": "string", "values": { "property1": "string", "property2": "string" } } } ], "request_format_summary": { "public_operations": [ "string" ], "supported_parameters": [ "string" ], "feature_flags": { "property1": true, "property2": true }, "output_formats": [ "string" ], "service_limits": { "online_rpm": 0, "concurrency": 0, "offline_inference": true, "offline_tpd": "string", "prompt_max_characters": 0 }, "required_selectors": [ "string" ], "optional_selectors": [ "string" ], "resolutions": [ "string" ], "resolutions_label": "string", "durations": [ "string" ], "durations_label": "string", "aspect_ratios": [ "string" ], "aspect_ratios_label": "string", "request_endpoint": "string", "status_mode": "string", "request_shape_mode": "string", "recommended_request_summary": {}, "request_endpoint_by_operation": { "property1": "string", "property2": "string" }, "operation_constraints": [ { "operation": "string", "request_endpoint": "string", "request_shape_mode": "string", "status_mode": "string", "supported_parameters": [ "string" ], "required_selectors": [ "string" ], "optional_selectors": [ "string" ], "documented_inputs": [ "string" ], "allowed_resolutions": [ "string" ], "allowed_durations": [ "string" ], "allowed_aspect_ratios": [ "string" ], "notes": [ "string" ], "parameter_options": { "property1": [ "string" ], "property2": [ "string" ] }, "parameter_value_constraints": { "property1": { "enum": [ "string" ], "enumCaseInsensitive": true, "maxItems": 0, "maxInteger": 0, "when": { "parameter": "string", "equals": "string" } }, "property2": { "enum": [ "string" ], "enumCaseInsensitive": true, "maxItems": 0, "maxInteger": 0, "when": { "parameter": "string", "equals": "string" } } } } ] }, "request_format_details": { "public_operations": [ "string" ], "supported_parameters": [ "string" ], "feature_flags": { "property1": true, "property2": true }, "output_formats": [ "string" ], "service_limits": { "online_rpm": 0, "concurrency": 0, "offline_inference": true, "offline_tpd": "string", "prompt_max_characters": 0 }, "required_selectors": [ "string" ], "optional_selectors": [ "string" ], "resolutions": [ "string" ], "resolutions_label": "string", "durations": [ "string" ], "durations_label": "string", "aspect_ratios": [ "string" ], "aspect_ratios_label": "string", "request_endpoint": "string", "status_mode": "string", "request_shape_mode": "string", "recommended_request_summary": {}, "request_endpoint_by_operation": { "property1": "string", "property2": "string" }, "operation_constraints": [ { "operation": "string", "request_endpoint": "string", "request_shape_mode": "string", "status_mode": "string", "supported_parameters": [ "string" ], "required_selectors": [ "string" ], "optional_selectors": [ "string" ], "documented_inputs": [ "string" ], "allowed_resolutions": [ "string" ], "allowed_durations": [ "string" ], "allowed_aspect_ratios": [ "string" ], "notes": [ "string" ], "parameter_options": { "property1": [ "string" ], "property2": [ "string" ] }, "parameter_value_constraints": { "property1": { "enum": [ "string" ], "enumCaseInsensitive": true, "maxItems": 0, "maxInteger": 0, "when": { "parameter": "string", "equals": "string" } }, "property2": { "enum": [ "string" ], "enumCaseInsensitive": true, "maxItems": 0, "maxInteger": 0, "when": { "parameter": "string", "equals": "string" } } } } ], "documented_inputs": [ "string" ], "documented_outputs": [ "string" ], "fallback_status_endpoints": [ "string" ], "notes": [ "string" ], "recommended_request": {} }, "accepted_request_formats": [ "openai_chat_completions" ] }}인증
BearerAuth AuthorizationBearer <token>
API 키 인증입니다. Dashboard > API > API Keys에서 API 키를 생성하거나 관리하십시오.
위치: header
경로 매개변수
model*string
모델 ID
응답
application/json
application/json
application/json
application/json