Skip to main content
PATCH
/
styles
/
{id}
Update a style
curl --request PATCH \
  --url https://api.krea.ai/styles/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "public": true,
  "urls": [
    "<string>"
  ],
  "title": "<string>",
  "cover_url": "<string>"
}
'
{
  "id": "<string>",
  "title": "<string>",
  "urls": [
    "<string>"
  ],
  "public": true,
  "prompt": "<string>",
  "owner": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "avatar_url": "<string>"
  },
  "like_count": 123,
  "created_at": "<string>",
  "cover_url": "<string>",
  "models": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

A unique identifier for a style

Example:

"0df7b411-5af8-413c-87bb-67f734ec3141"

Body

application/json
public
boolean | null
urls
string<uri>[]
title
string
cover_url
string

Response

Style updated successfully

Style response schema

id
string
required

Unique identifier for the style

title
string | null
required

Name of the style

urls
string<uri>[]
required

Portrait-oriented preview URLs

public
boolean
required

Whether the style is publicly visible

prompt
string
required

Suggested prompt for using this style

owner
object
required

Style creator info (null for Krea-official styles)

like_count
number
required

Number of likes

created_at
string
required

Creation timestamp

cover_url
string<uri> | null

Cover image URL

models
string[]

Compatible model names (e.g., flux_dev, wan)