PulseAI-OpenAPI
  1. Tenant
PulseAI-OpenAPI
  • App
    • README
    • Send Chat Message
      POST
    • File Upload
      POST
    • Stop Generate
      POST
    • Message Feedback
      POST
    • Next Suggested Questions
      GET
    • Get Conversation History Messages
      GET
    • Get Conversations
      GET
    • Delete Conversation
      DELETE
    • Conversation Rename
      POST
    • Speech to Text
      POST
    • Text to Audio
      POST
    • Text to Audio V2
      POST
    • Get Application Information
      GET
    • Get Application Parameters
      GET
    • Get Application Meta Information
      GET
    • Create Chat
      POST
  • Dataset
    • README
    • Create a Document from Text
      POST
    • Create a Document from a File
      POST
    • Create an Empty Knowledge Base
      POST
    • Get Knowledge Base List
      GET
    • Delete a Knowledge Base
      DELETE
    • Update a Document with Text
      POST
    • Update a Document with a File
      POST
    • Get Document Embedding Status (Progress)
      GET
    • Delete a Document
      DELETE
    • Get the Document List of a Knowledge Base
      GET
    • Add Chunks to a Document
      POST
    • Get Chunks from a Document
      GET
    • Update a Chunk in a Document
      POST
    • Delete a Chunk in a Document
      DELETE
    • Retrieve Chunks from a Knowledge Base
      POST
  • Tenant
    • README
    • Get a List of Tenant Space Charactar
      GET
    • Figure txt2img
      POST
    • Get a List of Tenant Space Plot
      GET
    • Get a List of Tenant Space Audio
      GET
  • OpenAPI
    GET
  1. Tenant

Figure txt2img

POST
https://api-platform.digitpulse.ai/v1/figure/txt2img
Last modified:2025-01-13 10:03:23

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "type": "txt2img",
    "base64_image": "",
    "model": "RedBlueFantasy_ponyv40.safetensors",
    "prompt": "1girl",
    "width": 540,
    "height": 960,
    "negative_prompt": "nsfw",
    "sampler_index": "euler",
    "upscalers": "",
    "vae": "",
    "seed": 12345671212,
    "steps": 20,
    "cfg_scale": 7,
    "batch_size": 1,
    "schedulers": "normal",
    "controlnet": "",
    "preprocessor": "reference_only",
    "reference_image": ""
}

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 'https://api-platform.digitpulse.ai/v1/figure/txt2img' \
--header 'X-Timestamp: 1739933362' \
--header 'X-Signature: 1739933362' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "txt2img",
    "base64_image": "",
    "model": "RedBlueFantasy_ponyv40.safetensors",
    "prompt": "1girl",
    "width": 540,
    "height": 960,
    "negative_prompt": "nsfw",
    "sampler_index": "euler",
    "upscalers": "",
    "vae": "",
    "seed": 12345671212,
    "steps": 20,
    "cfg_scale": 7,
    "batch_size": 1,
    "schedulers": "normal",
    "controlnet": "",
    "preprocessor": "reference_only",
    "reference_image": ""
}'

Responses

🟢200Success
application/json
Body

Example
{
    "images": []
}
Modified at 2025-01-13 10:03:23
Previous
Get a List of Tenant Space Charactar
Next
Get a List of Tenant Space Plot
Built with