---
title: "text-to-image"
method: POST
path: "/models/v2/dreamlike-art/dreamlike-photoreal-2.0"
---

# text-to-image

`POST /models/v2/dreamlike-art/dreamlike-photoreal-2.0`

## Request

- Base URL: `https://api.bytez.com`
- URL: `https://api.bytez.com/models/v2/dreamlike-art/dreamlike-photoreal-2.0`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bytez/apis/closed-source-model-api/docs/models/v2/dreamlike-art/dreamlike-photoreal-2.0/post.ts> (a function with typed inputs; its response is checked against the schema)

Generate images using text

## Request body

- object
  - `text` string, required: The input text

## Response `200`

Successful text-to-image response.

- object
  - `error` string, nullable, required: Null on success; otherwise an error message.
  - `output` string, required: Successful response with the generated image link

## Other responses

- `401`: Auth error - check your api key and how you're sending it.
- `429`: Too Many Requests – You have hit the rate limit.

---

[API](https://skmtc.dev/bytez/apis/closed-source-model-api.md) - [All operations](https://skmtc.dev/bytez/apis/closed-source-model-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bytez/apis/closed-source-model-api/revisions/d64c9c733afe?raw)
