Pet Store
  1. AI Model
Pet Store
  • User Service
    • Add steps into the doc
    • User Service
      • Overview
      • Notice
      • Login
      • Add a new pet to the store
      • Update an existing pet
      • Deletes a pet
      • Find pet by ID
      • Finds Pets by status
      • discriminator with mapping
    • Order Service
      • Find order by id
      • Check
    • AI Model
      • Google AI Studio
        POST
    • Schemas
      • Sample Schemas
        • Pet
        • Category
        • Tag
  • Order Service
    • Get list
      GET
    • Add a list
      POST
    • Update list
      PUT
    • New Request
      GET
    • Schemas
      • List
  1. AI Model

Google AI Studio

Developing
POST
https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent' \
--header 'X-goog-api-key: GEMINI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contents": [
      {
        "parts": [
          {
            "text": "Explain how AI works in a few words"
          }
        ]
      }
    ]
  }'
Response Response Example
{}
Modified at 2025-09-23 10:31:55
Previous
Check
Next
Pet
Built with