Text models

OpenAI GPT API setup and availability

Configure the OpenAI SDK, model ID, and output limits.

Choose a callable model ID

Read /v1/models from your deployment environment. Check authentication, model availability, and upstream eligibility separately when a request fails.

Run a short Chat Completions request

The OpenAI SDK base URL ends in /v1. Save the response request ID and look up its usage and charge before adding streaming or tools.

Example request

curl "https://api.apimodel.store/v1/models" \
  -H "Authorization: Bearer $MODELPORT_API_KEY"

Models in this guide

Related guides and tools

Sources