Community

Publish a result

Publish one of your results to the Community. Its file is copied into the Community's kept folder — kept until you unpublish it, where the job it came from keeps its seven days — and an image is drawn again as a feed thumbnail; a video's or a 3D model's poster, which you draw (a frame, a view), is redrawn beside it; a WAV's waveform is read off the file. The title, the description and a shown prompt pass an automatic check: words it refuses answer 422 text_refused and nothing is published. The work is then on your profile and at its own link at once, and in the public feeds once our team approves it (mine.approval). Publishing grants the display and remix licences the Terms state, for this one work: send licence: true, and the Terms version you accepted that states them. The job must be yours, succeeded, within its seven days, not held by a report or taken down, and paid for. Takes a key holding community:write — Account offers it unticked — or the desktop's own session key. Spends nothing. While our team has paused publishing it answers 503 publishing_paused before the body is read, with our sentence for the pause when we wrote one, and nothing is published.

POST
/v1/community/publications
POST
/v1/community/publications
Publish a result
Publish one of your results to the Community.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
Publish a result
curl --request POST \
  --url 'https://api.auray.ai/v1/community/publications' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "title": "<string>",
  "model": {
    "address": "<string>",
    "id": "<string>",
    "label": "<string>"
  },
  "attribution": "<string>",
  "ai_generated": true,
  "media": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "author": {},
  "counts": {
    "likes": 123,
    "views": 123,
    "comments": 123,
    "remixes": 123
  },
  "made_at": "<string>",
  "published_at": "<string>",
  "featured": true,
  "pinned": true,
  "original": true,
  "remixed": true,
  "liked": true,
  "url": "<string>",
  "description": "<string>",
  "show_prompt": true,
  "prompt": "<string>",
  "params": {},
  "remix_kind": "<string>",
  "remix_of": {
    "id": "<string>",
    "kind": "<string>",
    "title": "<string>",
    "author": {},
    "url": "<string>"
  },
  "mine": {
    "state": "<string>",
    "state_reason": "<string>",
    "approval": "<string>",
    "approval_reason": "<string>",
    "discoverable": true,
    "profile_pinned": true,
    "held": true,
    "licence_version": "<string>",
    "created_at": "<string>"
  },
  "request_id": "<string>"
}
Publish a result
curl -X POST https://api.auray.ai/v1/community/publications \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "job_id": "photo_docs-mtpb1vnh",
  "licence": true,
  "title": "A lighthouse in the fog",
  "show_prompt": true
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "title": "<string>",
  "model": {
    "address": "<string>",
    "id": "<string>",
    "label": "<string>"
  },
  "attribution": "<string>",
  "ai_generated": true,
  "media": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "author": {},
  "counts": {
    "likes": 123,
    "views": 123,
    "comments": 123,
    "remixes": 123
  },
  "made_at": "<string>",
  "published_at": "<string>",
  "featured": true,
  "pinned": true,
  "original": true,
  "remixed": true,
  "liked": true,
  "url": "<string>",
  "description": "<string>",
  "show_prompt": true,
  "prompt": "<string>",
  "params": {},
  "remix_kind": "<string>",
  "remix_of": {
    "id": "<string>",
    "kind": "<string>",
    "title": "<string>",
    "author": {},
    "url": "<string>"
  },
  "mine": {
    "state": "<string>",
    "state_reason": "<string>",
    "approval": "<string>",
    "approval_reason": "<string>",
    "discoverable": true,
    "profile_pinned": true,
    "held": true,
    "licence_version": "<string>",
    "created_at": "<string>"
  },
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — community:write — Account offers it unticked; the desktop's session key holds it.

Body

application/json
job_idstringrequired
The job, as a submit answered it and GET /v1/jobs/{id} reads it.
licencebooleanrequired
You grant the display licence and the remix licence the Terms state, for this work. One of true.
terms_versionstring
The Terms version you accepted that states the licences. Defaults to the current one.
assetinteger or string
Which file of the job: a position (0 unless said), or for a 3D job an artefact's name — textured first by default.
titlestring
0 to 100 characters. May be null.
descriptionstring
0 to 2000 characters. May be null.
show_promptbooleandefault: false
Show the prompt and the settings with the work. Never a file you uploaded to make it.
discoverablebooleandefault: true
Let it into the public feeds and search once approved. It is on your profile and at its link either way.
remix_ofstring
The work you made it from, while that is shown. May be null.
remix_kindstring
How, with remix_of. One of "recreate", "animate", "upscale", "edit".
posterobject
A frame of a video, a view of a 3D model or a cover for a song, drawn by you: PNG, JPEG or WebP as base64, at most 2,000,000 bytes decoded. Redrawn at most 2048 pixels on its longest side, with a feed thumbnail.
Show child attributes
content_typestring
One of "image/png", "image/jpeg", "image/webp".
data_base64string
waveformnumber[]
A song's peaks, when its file is not a WAV the API reads them off.

Response

application/json

Published: the work as its page draws it, mine included.

objectstringrequired
One of "publication".
idstringrequired
The work's public id.
kindstringrequired
One of "image", "video", "audio", "model3d", "project".
titlestringrequired
May be null.
modelobjectrequired
Show child attributes
addressstringrequired
The model address it was made with, as GET /v1/models lists it: the path a job is submitted to, such as auray-ai/krea-2-turbo/text-to-image. May be null.
idstringrequired
The same model's id, as GET /v1/models lists it: the catalogue slug, such as krea2. May be null.
labelstringrequired
The model's name, as a person reads it. May be null.
attributionstringrequired
The licence text the model's output travels with. Show it wherever the work is shown. May be null.
ai_generatedbooleanrequired
Every work here is a generation's result. Label it so wherever it is shown. One of true.
mediaobject[]required
Show child attributes
rolestringrequired
primary is the work as it was made; the rest are what the feeds draw: an image's thumbnail, a video's or a model's poster and thumbnail, a song's waveform (JSON: {version, peaks}). One of "primary", "poster", "preview", "thumbnail", "waveform".
positionintegerrequired
urlstringrequired
Where to load it. Kept until its author unpublishes the work. A URL.
content_typestringrequired
widthintegerrequired
May be null.
heightintegerrequired
May be null.
duration_msintegerrequired
May be null.
suppliedbooleanrequired
True for a poster, or its thumbnail, that the work's author supplied rather than one our services made: it is not what the model made, and the work's ai_generated does not describe it.
authorobject or nullrequired
countsobjectrequired
Show child attributes
likesintegerrequired
viewsintegerrequired
Counted once a day per visitor.
commentsintegerrequired
remixesintegerrequired
made_atstringrequired
When the result was made. May be null.
published_atstringrequired
May be null.
featuredbooleanrequired
Featured by our team.
pinnedbooleanrequired
Pinned by our team to the top of the public feeds.
originalbooleanrequired
An Original: made by our own team.
remixedbooleanrequired
Made from another work.
likedbooleanrequired
The reader's own like; null when no key that holds community:write was sent. May be null.
urlstringrequired
The work's page. A URL.
descriptionstringrequired
May be null.
show_promptbooleanrequired
promptstringrequired
Only while its author shows it. A hidden prompt is not stored anywhere. May be null.
paramsobjectrequired
The settings it was made with, only while shown — never a file that was uploaded to make it. May be null.
remix_kindstringrequired
One of "recreate", "animate", "upscale", "edit", null. May be null.
remix_ofobjectrequired
The work it was made from, while that is shown. May be null.
Show child attributes
idstring
kindstring
One of "image", "video", "audio", "model3d", "project".
titlestring
May be null.
authorobject or null
urlstring
A URL.
mineobject
Where an author's own work stands and why. Only ever answered to its author.
Show child attributes
statestringrequired
published is shown on the profile and at its link; hidden while a severe report is reviewed; withdrawn unpublished while a report held it; removed taken down by our team; staging while its files are copied. One of "staging", "published", "hidden", "withdrawn", "removed".
state_reasonstringrequired
Why our team hid or removed it. May be null.
approvalstringrequired
Whether it is in the public feeds and search. Approval gates the feeds only — never the profile or the link. One of "pending", "approved", "rejected".
approval_reasonstringrequired
Why our team declined it for the feeds. May be null.
discoverablebooleanrequired
The author lets it into the public feeds once approved.
profile_pinnedbooleanrequired
heldbooleanrequired
An open report holds it: it is kept until the report is decided.
licence_versionstring
The Terms version whose display and remix licences were granted.
created_atstringrequired
request_idstring
Mirrored in the X-Request-Id header.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Publish a result
curl -X POST https://api.auray.ai/v1/community/publications \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "job_id": "photo_docs-mtpb1vnh",
  "licence": true,
  "title": "A lighthouse in the fog",
  "show_prompt": true
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "title": "<string>",
  "model": {
    "address": "<string>",
    "id": "<string>",
    "label": "<string>"
  },
  "attribution": "<string>",
  "ai_generated": true,
  "media": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "author": {},
  "counts": {
    "likes": 123,
    "views": 123,
    "comments": 123,
    "remixes": 123
  },
  "made_at": "<string>",
  "published_at": "<string>",
  "featured": true,
  "pinned": true,
  "original": true,
  "remixed": true,
  "liked": true,
  "url": "<string>",
  "description": "<string>",
  "show_prompt": true,
  "prompt": "<string>",
  "params": {},
  "remix_kind": "<string>",
  "remix_of": {
    "id": "<string>",
    "kind": "<string>",
    "title": "<string>",
    "author": {},
    "url": "<string>"
  },
  "mine": {
    "state": "<string>",
    "state_reason": "<string>",
    "approval": "<string>",
    "approval_reason": "<string>",
    "discoverable": true,
    "profile_pinned": true,
    "held": true,
    "licence_version": "<string>",
    "created_at": "<string>"
  },
  "request_id": "<string>"
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.