Skip to main content

GPTs

GPTs Chat

  • 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 as gpt-4-gizmo-g-2fkFE8rbu

Request Example

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
}'

Additional Endpoints