Text

Simple Text Generation

Generate text from a prompt via a simple GET request. Returns plain text.

This is a simplified alternative to the OpenAI-compatible /v1/chat/completions endpoint — ideal for quick prototyping or simple integrations.

get/text/{prompt}

Request

  • Base URL: https://gen.pollinations.ai
  • URL: https://gen.pollinations.ai/text/{prompt}
  • Auth: HTTP bearer

Path parameters

promptstring required
Example:Write a haiku about coding

Text prompt for generation

Query parameters

modelstring

Text model to use. See /v1/models or /text/models for the full list of available models.

seedinteger

Optional seed for reproducible results on models that support it. Omitted by default. -1 maps to the stable compatibility seed.

systemstring

System prompt to set the model's behavior and context. Acts as initial instructions before the user prompt.

jsonboolean

When true, the model returns valid JSON. Useful for structured data extraction.

temperaturenumber

Controls randomness. Lower values (e.g. 0.2) produce more focused output, higher values (e.g. 1.5) produce more creative output. Range: 0.0 to 2.0. Sampling controls are ignored for model families that do not consistently support them, regardless of reasoning mode.

top_pnumber
presence_penaltynumber
frequency_penaltynumber
repetition_penaltynumber
max_tokensinteger
max_completion_tokensinteger
reasoning_effortstring
voicestring
streamboolean

Stream the response as it's generated, using Server-Sent Events (SSE). Each chunk contains partial text.

string
OR
boolean

Safety features: comma-separated list of privacy, secrets, sexual, violence, shield, true, nsfw. true enables privacy,secrets; nsfw enables sexual,violence. Also accepted in the Pollinations-Safe header. Defaults to off; false and 0 are accepted as off.

Response

Generated text response

Changes

No recorded changes to this operation across all 1 revision of this API.