> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fluxaiimagegenerator.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Text To Prompt

> Generate a prompt from a text

## Pricing

* **Cost**: 1 credits per request


## OpenAPI

````yaml POST /v1/text-to-prompt
openapi: 3.0.1
info:
  title: fluxai
  description: ''
  version: 1.0.0
servers: []
security: []
tags: []
paths:
  /v1/text-to-prompt:
    post:
      tags: []
      summary: Text To Prompt
      parameters:
        - name: x-api-key
          in: header
          description: ''
          required: true
          example: '{{apiKey}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
              required:
                - text
            example:
              text: a cat
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      prompt:
                        type: string
                    required:
                      - prompt
                required:
                  - code
                  - message
                  - data
              examples:
                '1':
                  summary: 成功示例
                  value:
                    code: 200
                    message: success
                    data:
                      prompt: >
                        A sleek, ginger tabby cat, with emerald green eyes that
                        shimmer in the dim light, crouches low to the ground. 
                        Its fur, a rich blend of orange and cream, feels soft
                        and velvety to the touch, and a few strands of tawny fur
                        stick out like whiskers.  Dust motes dance in a single
                        shaft of sunlight piercing a crack in the weathered
                        wooden floorboards of a dimly lit, rustic barn.  The
                        cat’s tail flicks nervously, its pink nose twitching, as
                        it listens intently to every rustle. A faint, musty
                        smell of hay and old wood fills the air.
          headers: {}
      deprecated: false
      security: []

````