Text Generation Request

A request to generate text using an IBM watsonx.ai foundation model.

Artificial IntelligenceCloudEnterpriseIBM

Properties

Name Type Description
model_id string The ID of the model to use for generation.
input string The prompt text to send to the model.
project_id string The watsonx.ai project ID.
parameters object Generation parameters.
View JSON Schema on GitHub

JSON Schema

text-generation-request.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "text-generation-request.json",
  "title": "Text Generation Request",
  "description": "A request to generate text using an IBM watsonx.ai foundation model.",
  "type": "object",
  "properties": {
    "model_id": {
      "type": "string",
      "description": "The ID of the model to use for generation."
    },
    "input": {
      "type": "string",
      "description": "The prompt text to send to the model."
    },
    "project_id": {
      "type": "string",
      "description": "The watsonx.ai project ID."
    },
    "parameters": {
      "type": "object",
      "description": "Generation parameters.",
      "properties": {
        "max_new_tokens": {
          "type": "integer",
          "description": "Maximum number of tokens to generate.",
          "minimum": 1
        },
        "temperature": {
          "type": "number",
          "description": "Sampling temperature.",
          "minimum": 0,
          "maximum": 2
        },
        "top_p": {
          "type": "number",
          "description": "Top-p (nucleus) sampling.",
          "minimum": 0,
          "maximum": 1
        },
        "top_k": {
          "type": "integer",
          "description": "Top-k sampling.",
          "minimum": 1
        },
        "repetition_penalty": {
          "type": "number",
          "description": "Penalty for repeated tokens."
        },
        "stop_sequences": {
          "type": "array",
          "description": "Sequences that stop generation.",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "required": ["model_id", "input", "project_id"]
}

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/text-generation-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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