Text Generation
Harness the power of large language models to generate any type of text content - from creative writing and code to structured data formats and technical documentation.
Basic Usage
Generate text responses using our chat completion endpoint:
Controlling Output Style
Temperature
Adjust the temperature parameter to control creativity vs. consistency:
System Messages
Guide the model’s behavior with system instructions:
Use Cases
Code Generation
Content Summarization
Structured Output
Generate JSON or other structured formats:
Streaming Responses
For real-time output, enable streaming:
Best Practices
- Use lower temperatures (0.1-0.3) for factual or deterministic tasks
- Use higher temperatures (0.7-1.2) for creative or varied outputs
- Include clear, specific instructions in your prompts
- Use system messages to set consistent behavior
- Consider token limits when working with large inputs or outputs