Promptster · Schema

ComparePromptsResponse

Artificial IntelligenceMonitoringTestingMCP

Properties

Name Type Description
id string Unique comparison ID
prompt string
results array
created_at string
View JSON Schema on GitHub

JSON Schema

promptster-dev-compare-prompts-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/promptster-dev/json-schema/promptster-dev-compare-prompts-response-schema.json",
  "title": "ComparePromptsResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/promptster-dev-openapi.yaml#/components/schemas/ComparePromptsResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique comparison ID"
    },
    "prompt": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/$defs/Provider"
          },
          "model": {
            "type": "string"
          },
          "response": {
            "type": "string"
          },
          "tool_calls": {
            "$ref": "#/$defs/ToolCalls"
          },
          "finish_reason": {
            "$ref": "#/$defs/FinishReason"
          },
          "metadata": {
            "$ref": "#/$defs/ResponseMetadata"
          },
          "success": {
            "type": "boolean"
          },
          "error": {
            "$ref": "#/$defs/ProviderError"
          }
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "FinishReason": {
      "type": "string",
      "description": "Why generation stopped, one vocabulary across providers: `stop`, `tool_calls`, `length` (hit `max_tokens`), `content_filter`; any other provider-specific value is passed through lower-cased (for example Gemini's `unexpected_tool_call` under `tool_choice: none`). Present whenever the provider reports one, with or without tools."
    },
    "Provider": {
      "type": "string",
      "enum": [
        "openai",
        "anthropic",
        "google",
        "deepseek",
        "xai",
        "groq",
        "mistral",
        "perplexity",
        "together",
        "cerebras",
        "fireworks"
      ],
      "description": "AI provider identifier"
    },
    "ProviderError": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "provider_authentication_error",
            "provider_rate_limit",
            "provider_model_unavailable",
            "provider_tools_unsupported",
            "provider_payment_required",
            "provider_error"
          ]
        },
        "message": {
          "type": "string"
        }
      }
    },
    "ResponseMetadata": {
      "type": "object",
      "properties": {
        "input_tokens": {
          "type": "integer",
          "description": "Tokens in the prompt"
        },
        "output_tokens": {
          "type": "integer",
          "description": "Tokens in the response"
        },
        "total_tokens": {
          "type": "integer",
          "description": "The provider's total for the call. Includes `reasoning_tokens` when present, so it can exceed `input_tokens + output_tokens`."
        },
        "response_time_ms": {
          "type": "integer",
          "description": "Response time in milliseconds"
        },
        "tokens_per_second": {
          "type": "number",
          "description": "Output tokens per second"
        },
        "estimated_cost": {
          "type": "number",
          "description": "Estimated cost in USD"
        },
        "reasoning_tokens": {
          "type": "integer",
          "description": "Hidden reasoning (thinking) tokens the provider bills at the output rate but leaves out of `output_tokens`: Google `thoughtsTokenCount`, xAI `completion_tokens_details.reasoning_tokens`. Present only when the provider reports a non-zero count; already included in `estimated_cost`. OpenAI and Anthropic count reasoning inside `output_tokens`, so the field is absent for them."
        },
        "cached_input_tokens": {
          "type": "integer",
          "description": "Portion of `input_tokens` served from the provider's prompt cache and billed at the cached rate (xAI, Google, Perplexity). Present only when the provider reports a non-zero count. xAI prepends a ~1,150-token system prompt to every request and reports it here."
        }
      }
    },
    "ToolCall": {
      "type": "object",
      "required": [
        "id",
        "name",
        "arguments"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The provider's call id (Gemini sends none; `call_<index>` is synthesised)."
        },
        "name": {
          "type": "string"
        },
        "arguments": {
          "type": "object",
          "description": "Parsed argument object. `{}` when the provider's argument string was not a JSON object."
        },
        "arguments_raw": {
          "type": "string",
          "description": "Present only when the provider's argument string did not parse to a JSON object."
        },
        "arguments_parse_error": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present (true) only alongside `arguments_raw`."
        }
      }
    },
    "ToolCalls": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ToolCall"
      },
      "description": "Tools the model selected, in the provider's order. Omitted when the model selected none (including every request without `tools`). An array so parallel calls arrive as-is, but nothing guarantees more than one entry."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/promptster-dev-compare-prompts-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.