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.
Request
- Base URL: https://gen.pollinations.ai
- URL: https://gen.pollinations.ai/text/{prompt}
- Auth: HTTP bearer
Path parameters
Text prompt for generation
Query parameters
Text model to use. See /v1/models or /text/models for the full list of available models.
Optional seed for reproducible results on models that support it. Omitted by default. -1 maps to the stable compatibility seed.
System prompt to set the model's behavior and context. Acts as initial instructions before the user prompt.
When true, the model returns valid JSON. Useful for structured data extraction.
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.
Stream the response as it's generated, using Server-Sent Events (SSE). Each chunk contains partial text.
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.