Eden AI Text Generation Implementation Steps
Text generation via Eden AI can be categorized into two implementation paths: developer mode and non-developer mode:
Developer mode (API calls)
- Generate an exclusive key on the Dashboard API Keys page
- Construct the request parameters with reference to the document: parameters such as providers (e.g. ['openai','mistral']), input text, temperature, etc. should be specified.
- Send a POST request to the Unified Endpoint (https://api.edenai.run/v2/text/generation)
A typical Python example is shown below:
import requests
data = {
"providers": ["openai"],
"text": "Generating AI Industry Analysis Reports",
"language": "zh",
"max_tokens": 500
}
response = requests.post(url, headers=headers, json=data)
Non-developer mode
- Enter prompts directly through the dashboard Test API page
- Select the target model (the platform will automatically recommend models suitable for Chinese)
- View generation results and adjust parameters in real time
Note: For Chinese scenes, be sure to set the language parameter to zh. Some models have limitations on long text, so it is recommended to process it in paragraphs.
This answer comes from the articleEden AI: Connecting over 100+ AI Models through a Unified APIThe




























