Prompt StudioDeveloper reference
API reference

API documentation

All endpoints return JSON. Choose an endpoint in the console to try it and generate a cURL command for this server.

Usage

GET/api/usage/?agent={agent}

Returns quota windows for Antigravity and Codex, or session and tool statistics for OpenCode.

{
  "usage": {
    "kind": "quota",
    "groups": [{ "name": "...", "buckets": [...] }]
  }
}

Models

GET/api/models/?agent={agent}

Returns the available model IDs and display names for the selected agent.

{ "models": [{ "id": "...", "name": "..." }] }

AI response

POST/api/ai/

Send a JSON body. Prompt length is limited to 20,000 characters.

{
  "prompt": "Explain this code",
  "model": "model-id",
  "agent": "antigravity"
}

Request console

Build and send a live API request


            

Copy the command to run the same request in a terminal.

ResponseNot sent
The API response will appear here.