Skip to main content

Path Parameters

model
string
required
The ID of the model to retrieve (e.g., gpt-5.4, claude-sonnet-4-6).

Response

id
string
Model identifier.
object
string
Always model.
created
integer
Creation timestamp.
owned_by
string
Model provider.
lemondata
object
LemonData-specific public metadata, including category, pricing unit, public non-chat contract summary, and agent_preferences for non-chat recommendation snapshots.
curl "https://api.lemondata.cc/v1/models/gpt-5.4" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "id": "gpt-5.4",
  "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"
  }
}

Non-Chat Recommendation Metadata

For non-chat models, the detail route also returns lemondata.agent_preferences.<scene>. Use it to inspect:
  • preferred_rank
  • success_rate_24h
  • sample_count_24h
  • status
  • updated_at
The public response intentionally keeps basis.channel_id and basis.physical_model as null so agents can consume the recommendation signal without learning internal routing identifiers.