ModelsLab/RealTime Text To Image
realtime-text-to-imageGenerate high-quality images in just 2–4 seconds. From realistic and 3D art to fantasy our realtime model brings your ideas to life instantly.
API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v6/realtime/text2img
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"prompt": "safe_pos, 1girl, sfw, gorgeous, freckles, shiny wet skin, detailed skin, detailed face, fierce:2, angry, intense glare, arched back:2, dynamic pose:2, perfect eyes, eye contact, black pupils:1.5, piercing gaze, glowing eyes, enormous valkyrie wings:2, flaming halo, decorative mystic armor, huge wings:2, action pose, slight cleavage:0.2, slight skin:0.5, armored skirt:2, billowing skirt, skirt, flowing cape, intricate armor, shiny armor, perfect hands:2, perfect fingers, eyeliner, relaxed hands, covered breasts, thigh highs, leggings, armored boots, armored thighs, exposed neck, exposed collar bones:1.5, exposed lower thigh, showing slight leg ","samples": "4","width": "1024","height": "1024","negative_prompt": "easynegative, bad proportions, low resolution, bad, ugly, terrible, painting, 3d, render, comic, anime, manga, unrealistic, flat, watermark, signature, worst quality, low quality, normal quality, lowres, simple background, inaccurate limb, extra fingers, fewer fingers, missing fingers, extra arms, (extra legs:1.3), inaccurate eyes, bad composition, bad anatomy, error, extra digit, fewer digits, cropped, low res, worst quality, low quality, normal quality, jpeg artifacts, extra digit, fewer digits, trademark, watermark, artist's name, username, signature, text, words, ","base64": "false","track_id": null,"webhook": null,"seed": "0","key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| Prompt | prompt | Enter the prompt to generate an image |
| Samples | samples | Number of images to generate (1-4) |
| Width | width | Width of the generated image |
| Height | height | Height of the generated image |
| Negative Prompt | negative_prompt | Things you do not want in the generated image |
| base64 | base64 | Get response as base64 string, default: false, options: true or false |
| track_id | track_id | This ID is returned in the response to the webhook API call and is used to identify the webhook request. |
| webhook | webhook | URL to get a POST API call once the image generation is complete. |
| seed | seed | Seed for reproducible results |