Skip to main content

Before you begin

Confirm you have:
  • Base URL https://models.ageneral.ai
  • A valid virtual key or other credential described in Authentication
  • Read Models for endpoint summaries

Model identifiers

Models surfaces provider/model strings such as openai/gpt-4o-mini or anthropic/claude-3-5-sonnet-latest. Which ids appear for GET /v1/models depends on providers enabled for your project.

List models

  1. Send GET /v1/models to https://models.ageneral.ai.
  2. Parse the OpenAI-style payload: object and data arrays.
  3. Use GET /v1/models in API reference for parameters and the interactive explorer.

Choose a model for inference

  1. Prefer ids returned by GET /v1/models for your credential.
  2. Pass the string as model on POST /v1/chat/completions or POST /v1/responses.
  3. If an id is disabled for your account or region, the provider returns an error.

Pricing

See Pricing for the live site catalog, context limits, and per-model rates.

Next steps