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

# Gerar ou editar imagem — consultar status



## OpenAPI

````yaml /openapi.json get /v1/images/generations/{id}
openapi: 3.0.3
info:
  title: Swaply API
  version: 1.0.0
  description: >-
    Integre vídeo ao vivo, troca de personagem e geração de imagens pelo seu
    servidor.
servers:
  - url: https://swaplyapi.shardweb.app
security:
  - bearerAuth: []
paths:
  /v1/images/generations/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
    get:
      tags:
        - Imagens
      summary: Gerar ou editar imagem — consultar status
      responses:
        '200':
          $ref: '#/components/responses/Job'
        '404':
          description: Pedido inexistente ou expirado
components:
  responses:
    Job:
      description: >-
        Pedido assíncrono. Consulte até completed, failed ou cancelled. Expira
        após 15 minutos.
      content:
        application/json:
          schema:
            type: object
            properties:
              id:
                type: string
              status:
                type: string
                enum:
                  - checking
                  - uploading
                  - queued
                  - generating
                  - completed
                  - failed
                  - cancelled
              message:
                type: string
                nullable: true
              cost:
                type: integer
                example: 20
              currency:
                type: string
                example: SWP
              expiresAt:
                type: string
                format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.