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

Cortext: Text To Image

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

Request

Header Params

Body Params application/json

Example
{
    "messages": "Give me an image of a cute, phantom, cockapoo. Very cute, not too fluffy",
    "quality": "hd",
    "size": "1024x1024",
    "provider": "OpenAI",
    "steps": 30,
    "cfg_scale": 2,
    "style": "vivid"
}

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/cortext-text-to-image' \
--header 'X-API-KEY;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "messages": "Give me an image of a cute, phantom, cockapoo. Very cute, not too fluffy",
    "quality": "hd",
    "size": "1024x1024",
    "provider": "OpenAI",
    "steps": 30,
    "cfg_scale": 2,
    "style": "vivid"
}'

Responses

🟢200Successful Response
application/json
Body

Example
[
    {
        "prompt": "Give me an image of a cute, phantom, cockapoo. Very cute, not too fluffy",
        "revised_prompt": "Create an image featuring an endearing phantom cockapoo. This adorable canine should possess an ethereal, almost spectral aura. While the cockapoo breed is known for its fluffy fur, for this specific image, the fur should be maintained at a moderate level, ensuring that the dog still maintains a cute appearance but is not exceedingly fluffy.",
        "model": "dall-e-3",
        "style": "vivid",
        "size": "1024x1024",
        "quality": "hd",
        "image_url": "https://corcel.b-cdn.net/37d992c9-22a7-4a9e-8197-c12b570e4bca.webp"
    }
]
🟠422Validation Error
Modified at 2024-06-12 14:04:45
Previous
Vision: Text-To-Image
Next
Vision: Image-To-Image
Built with