GPTs
Chat GPTs
- Method:
POST /chat/completions - GPTs are auto-detected by the gateway
- Model naming format:
gpt-4-gizmo-* - Example: if a GPT ID is
g-2fkFE8rbu, call it asgpt-4-gizmo-g-2fkFE8rbu
Exemple de requête
curl --location 'https://api.aizn.com/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-4-gizmo-g-2fkFE8rbu",
"messages": [
{
"role": "user",
"content": "Who are you?"
}
],
"stream": false
}'