# Use thinking models

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1beta/models/gemini-2.5-flash-preview-04-17:generateContent:
    post:
      summary: Use thinking models
      deprecated: false
      description: >-
        Models with thinking capabilities are available in [Google AI
        Studio](https://aistudio.google.com/prompts/new_chat?model=gemini-2.5-flash-preview-04-17)
        and through the Gemini API. Thinking is on by default in both the API
        and AI Studio because the 2.5 series models have the ability to
        automatically decide when and how much to think based on the prompt. For
        most use cases, it's beneficial to leave thinking on. But if you want to
        to turn thinking off, you can do so by setting the `thinkingBudget`
        parameter to 0.
      tags:
        - Model Capabilities/Gemini thinking
      parameters: []
      requestBody:
        content:
          text/plain:
            schema:
              type: string
            example: |-
              {
                 "contents": [
                   {
                     "parts": [
                       {
                         "text": "Explain the concept of Occam\s
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
          headers: {}
          x-apidog-name: 成功
      security:
        - apikey-header-x-goog-api-key: []
      x-apidog-folder: Model Capabilities/Gemini thinking
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/892755/apis/api-16240709-run
components:
  schemas: {}
  securitySchemes:
    apikey-header-x-goog-api-key:
      type: apiKey
      in: header
      name: x-goog-api-key
servers:
  - url: https://generativelanguage.googleapis.com
    description: Prod Env
security:
  - apikey-header-x-goog-api-key: []

```
