model ID
.
Key points: Only need to add the forwarding
base_url
and AiHubMix platform API key inside the client.
Model IDs can be obtained by clicking the “Copy Button” on model marketplace cards.Basic Integration: Using OpenAI Official Library
Python Example
Python
OpenAI official current service status check
Universal Model Forwarding API
Endpoint:POST
/v1/chat/completions
Body Request Parameters:
Request Parameters
Name | Location | Type | Required | Description |
---|---|---|---|---|
Authorization | header | string | No | Bearer AIHUBMIX_API_KEY |
Content-Type | header | string | No | none |
body | body | object | No | none |
Response Results
Status Code | Status Code Meaning | Description | Data Model |
---|---|---|---|
200 | OK | none | Inline |