Synapse PaaS Template
  1. Image
Synapse PaaS Template
  • Synapse PaaS API
    • Chat
      • Cortext: Chat
      • Vision: Chat
    • Image
      • Vision: Text-To-Image
        POST
      • Cortext: Text To Image
        POST
      • Vision: Image-To-Image
        POST
      • Vision: Inpaint
        POST
      • Vision: Avatar
        POST
      • Vision: Clip Embeddings
        POST
      • Niche: Text-To-Image
        POST
      • Niche: Image-To-Image
        POST
      • Niche: InstantID
        POST
    • Web Query
      • Smart Scrape
    • AI Detection
      • It's AI: AI Text Detector
      • It's AI: AI Text Detector Batch
    • Speech
      • Text To Speech Create
      • Text To Speech Retrieve
    • Compute
      • Get Jobs
      • Create Docker Job
      • Create Raw Script Job
  • Schemas
    • Schemas
      • ChatMessageRequest
      • AvatarRequest
      • ChatMessageRequest
      • AvatarRequest
      • HTTPValidationError
      • ChatMessageVariantRequest
      • AvatarResponse
      • ChatMessageVariantRequest
      • AvatarResponse
      • ValidationError
      • HTTPValidationError
      • ChatModels
      • HTTPValidationError
      • ChatModels
      • ValidationError
      • ChatRequest
      • ValidationError
      • ChatRequest
      • ClipEmbeddingsRequest
      • ClipEmbeddingsRequest
      • ClipEmbeddingsResponse
      • ClipEmbeddingsResponse
      • EngineEnum
      • EngineEnum
      • HTTPValidationError
      • HTTPValidationError
      • ImageToImageRequest
      • ImageToImageRequest
      • ImageToImageResponse
      • ImageToImageResponse
      • InpaintRequest
      • InpaintRequest
      • InpaintResponse
      • InpaintResponse
      • Message
      • Message
      • Role
      • Role
      • TextPrompt
      • TextPrompt
      • TextToImageRequest
      • TextToImageRequest
      • TextToImageResponse
      • TextToImageResponse
      • UpscaleRequest
      • UpscaleRequest
      • UpscaleResponse
      • UpscaleResponse
      • ValidationError
      • ValidationError
  1. Image

Vision: Text-To-Image

Localhost Development Server
http://localhost:3000
Localhost Development Server
http://localhost:3000
POST
/api/vision-text-to-image
Use a text prompt to generate an image.

Request

Header Params

Body Params application/json

Example
{
    "text_prompts": [
        {
            "text": "Shiba inu"
        }
    ],
    "height": 1280,
    "width": 1280,
    "engine": "proteus",
    "steps": 8,
    "cfg_scale": 2
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/api/vision-text-to-image' \
--header 'X-API-KEY;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "text_prompts": [
        {
            "text": "Shiba inu"
        }
    ],
    "height": 1280,
    "width": 1280,
    "engine": "proteus",
    "steps": 8,
    "cfg_scale": 2
}'

Responses

🟢200Successful Response
application/json
Body

Example
{
    "signed_urls": [
        "https://corcel.b-cdn.net/b1f8e85c-81e9-430c-8e31-40405519d43c.webp"
    ]
}
🟠422Validation Error
Modified at 2024-06-12 14:04:38
Previous
Vision: Chat
Next
Cortext: Text To Image
Built with