Retrieve a model.
Retrieve detailed information about a specific model, including its capabilities, provider, and supported features.
Args: model_id: The ID of the model to retrieve (e.g., ‘openai/gpt-4’, ‘anthropic/claude-3-5-sonnet-20241022’) user: Authenticated user obtained from API key validation
Returns: Model: Information about the requested model
Raises: HTTPException:
Requires: Valid API key with ‘read’ scope permission
Example:
import dedalus_sdk
client = dedalus_sdk.Client(api_key="your-api-key")
model = client.models.retrieve("openai/gpt-4")
print(f"Model: {model.id}")
print(f"Owner: {model.owned_by}")
Response:
{
"id": "openai/gpt-4",
"object": "model",
"created": 1687882411,
"owned_by": "openai"
}
Documentation Index
Fetch the complete documentation index at: https://docs.dedaluslabs.ai/llms.txt
Use this file to discover all available pages before exploring further.
model_id uses the provider/model format (e.g., openai/gpt-4o,
anthropic/claude-opus-4-5).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Unified model metadata across all providers.
Combines provider-specific schemas into a single, consistent format. Fields that aren't available from a provider are set to None.
Unique model identifier with provider prefix (e.g., 'openai/gpt-4')
Provider that hosts this model
openai, anthropic, google, xai, deepseek, mistral, groq, fireworks, cohere, together, cerebras, perplexity, moonshot When the model was released (RFC 3339)
Human-readable model name
Model description
Model version identifier
Normalized model capabilities
Provider-declared default parameters
Typed provider-specific metadata
Provider-specific generation method names (None = not declared)