ModelService
List models
List all available models along with their capabilities, pricing, and specifications.
/llm/v1alpha/modelsAuthorizationstringrequired
Your authentication credentials. For Basic authentication, please populate Basic $INWORLD_API_KEY. You can create a key in one command with the Inworld CLI: inworld workspace add-key.
modelsobject[]
The list of available models.
Show child attributes
modelstringrequired
The unique identifier of the model. Use this value in the model field when making LLM completions or Router requests.
providerstringrequired
The service provider hosting the model. Maps to the serviceProvider field in completion requests.
modelCreatorstring
The organization that created the model. May differ from the provider (e.g., a Meta model hosted on Groq).
pricingobject
Per-token pricing information for the model (in USD).
Show child attributes
promptnumber
Cost per input (prompt) token in USD.
completionnumber
Cost per output (completion) token in USD.
specobject
Technical specifications and capabilities of the model.
Show child attributes
inputModalitiesenum<string>[]
The input modalities supported by the model.
outputModalitiesenum<string>[]
The output modalities supported by the model.
contextLengthinteger
The maximum number of tokens the model can process as input (context window size).
maxCompletionTokensinteger
The maximum number of tokens the model can generate in a single response.
supportedParametersstring[]
The generation parameters supported by this model. Common values include: max_tokens, temperature, top_p, stop, seed, response_format, structured_outputs, tools, tool_choice, reasoning, include_reasoning, frequency_penalty, presence_penalty.
capabilitiesobject
High-level capability flags for the model. Only capabilities that are true are included in the response.
Show child attributes
functionCallingboolean
Whether the model supports function/tool calling.
webSearchboolean
Whether the model supports web search (grounding).
reasoningboolean
Whether the model supports chain-of-thought reasoning.
promptCachingboolean
Whether prompt caching is available for this model.
responseSchemaboolean
Whether the model supports structured output with a response schema (JSON mode).
visionboolean
Whether the model supports image/vision input.
isSupportedboolean
Indicates whether this model is currently supported and recommended for use. Models without this flag or with false may be experimental, deprecated, or not yet generally available.