# Models

List available Grid Instruments that can be passed in the chat completions "model" field.

## List available models

> Returns a list of all available Grid Instruments that can be passed in the chat completions "model" field.\
> \
> Each instrument includes its ID, display name, and other metadata. Use the instrument \`id\` when making chat completion requests.<br>

````json
{"openapi":"3.0.3","info":{"title":"Consumption API","version":"1.0.0"},"tags":[{"name":"Models","description":"List available Grid Instruments that can be passed in the chat completions \"model\" field.\n"}],"servers":[{"url":"https://api.thegrid.ai/v1","description":"Grid Consumption API"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer token authentication using your API key.\n\nInclude your API key in the Authorization header:\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\nGenerate API keys from your [Grid Dashboard](https://app.thegrid.ai/profile/api-keys).\n"}},"schemas":{"ModelsResponse":{"title":"ModelsResponse","description":"List of available models","type":"object","required":["object","data"],"properties":{"object":{"type":"string","description":"The object type, always \"list\"","enum":["list"]},"data":{"type":"array","description":"List of model objects","items":{"$ref":"#/components/schemas/Model"}}}},"Model":{"title":"Model","description":"An LLM model available for use","type":"object","properties":{"id":{"type":"string","description":"The model identifier to use in API requests.\nFormat is typically `provider/model-name`.\n"},"object":{"type":"string","description":"The object type, always \"model\"","enum":["model"]},"display_name":{"type":"string","description":"Human-readable name for the model"},"created":{"type":"integer","description":"Unix timestamp when the model was created"},"owned_by":{"type":"string","description":"The organization that owns the model"}}},"ErrorResponse":{"title":"ErrorResponse","description":"Error response returned when a request fails","type":"object","required":["errors"],"properties":{"errors":{"description":"Error details. Can be either:\n- An object with a `detail` field for general errors\n- An array of validation errors with `path`, `message`, and `value` fields\n","oneOf":[{"type":"object","required":["detail"],"properties":{"detail":{"type":"string","description":"Human-readable error message"}}},{"type":"array","description":"List of validation errors","items":{"type":"object","required":["path","message"],"properties":{"path":{"type":"string","description":"The field path that caused the error"},"message":{"type":"string","description":"Description of the validation error"},"value":{"type":"string","description":"The invalid value that was provided"}}}}]}}}}},"paths":{"/models":{"get":{"summary":"List available models","description":"Returns a list of all available Grid Instruments that can be passed in the chat completions \"model\" field.\n\nEach instrument includes its ID, display name, and other metadata. Use the instrument `id` when making chat completion requests.\n","operationId":"listModels","tags":["Models"],"responses":{"200":{"description":"List of available models","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelsResponse"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
````


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thegrid.ai/docs/consumption-api/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
