# Chat & Text Generation

## POST /generate-text

> Generates text based on input messages

```json
{"openapi":"3.0.3","info":{"title":"Zero2Launch API","version":"1.6"},"tags":[{"name":"Chat & Text Generation"}],"servers":[{"url":"https://api.zero2launch.com","description":"Main API Server"},{"url":"https://tools.zero2launch.com","description":"Tools Server (FFmpeg, etc.)"}],"security":[{"apikey":[]}],"components":{"securitySchemes":{"apikey":{"type":"apiKey","name":"X-API-Key","in":"header"}},"schemas":{"TextInput":{"type":"object","required":["messages"],"properties":{"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}}},"default":[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":""}]},"model":{"type":"string","default":"openai","description":"Model name","enum":["openai","openai-fast","openai-large","gemini","openai-reasoning","qwen-coder","midijourney","nova-fast","evil","mirexa","rtist","unity","deepseek-reasoning","bidara","sur","roblox-rp","gemini-search","gpt-5","gpt-5.2","o3-mini","claude-sonnet-4","gemini-2.5-pro","gemini-2.5-flash","grok-4-fast","L3-70B-Euryale-v2.1","midnight-rose","unfiltered_x","Llama-4-Maverick","deepseek","deepseek-v3.1","deepseek-r1","deepseek-v3","gpt-oss-120b","gpt-4o-latest","openai/gpt-oss-20b"]}}},"TextOutput":{"type":"object","properties":{"text":{"type":"string","description":"Generated text"}}}}},"paths":{"/generate-text":{"post":{"operationId":"post_text_generation","summary":"Generates text based on input messages","tags":["Chat & Text Generation"],"parameters":[{"description":"An optional fields mask","in":"header","name":"X-Fields","schema":{"format":"mask","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextInput"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextOutput"}}}}}}}}}
```

## GET /generate-text/models

> List available text models

```json
{"openapi":"3.0.3","info":{"title":"Zero2Launch API","version":"1.6"},"tags":[{"name":"Chat & Text Generation"}],"servers":[{"url":"https://api.zero2launch.com","description":"Main API Server"},{"url":"https://tools.zero2launch.com","description":"Tools Server (FFmpeg, etc.)"}],"paths":{"/generate-text/models":{"get":{"operationId":"get_text_models","summary":"List available text models","tags":["Chat & Text Generation"],"responses":{"200":{"description":"Success"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zero2launch.gitbook.io/docs/chat-and-text-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
