Skip to main content
GET
/
v1
/
models
/
{model}
curl "https://api.lemondata.cc/v1/models/gpt-4o" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "id": "gpt-4o",
  "object": "model",
  "created": 1706000000,
  "owned_by": "openai"
}

Path Parameters

model
string
required
The ID of the model to retrieve (e.g., gpt-4o, claude-3-5-sonnet-20241022).

Response

id
string
Model identifier.
object
string
Always model.
created
integer
Creation timestamp.
owned_by
string
Model provider.
curl "https://api.lemondata.cc/v1/models/gpt-4o" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "id": "gpt-4o",
  "object": "model",
  "created": 1706000000,
  "owned_by": "openai"
}

Error Handling

If the model doesn’t exist, you’ll receive a 404 error:
{
  "error": {
    "message": "Model 'invalid-model' not found",
    "type": "invalid_request_error",
    "code": "model_not_found"
  }
}