Skip to content

Models

List and inspect the AI models available on the platform.

List Models

GET /v1/models

Returns all models your API key has access to.

Example

curl https://ai.moducompia.com/v1/models \
  -H "Authorization: Bearer sk-YOUR_API_KEY"
models = client.models.list()
for model in models.data:
    print(f"{model.id} — owned by {model.owned_by}")

Response

{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1715367049,
      "owned_by": "openai"
    },
    {
      "id": "claude-sonnet-4-20250514",
      "object": "model",
      "created": 1715367049,
      "owned_by": "anthropic"
    },
    {
      "id": "gemini-2.5-pro",
      "object": "model",
      "created": 1715367049,
      "owned_by": "google"
    }
  ]
}

Retrieve a Model

GET /v1/models/{model_id}

Example

curl https://ai.moducompia.com/v1/models/gpt-4o \
  -H "Authorization: Bearer sk-YOUR_API_KEY"

Model Categories

Category Examples Use Case
Chat gpt-4o, claude-sonnet-4-20250514, gemini-2.5-pro Conversational AI, reasoning, coding
Embedding text-embedding-3-small, text-embedding-3-large Semantic search, RAG
Image dall-e-3 Image generation
Audio tts-1, whisper-1 Speech synthesis & recognition
Rerank rerank-v3 Search result ranking

Model availability

The list of available models may change as new models are added or retired. Always check /v1/models for the current list. If your token has model restrictions, only permitted models will appear.