One run of a story, for a page following it.

GET /ai/stories/{storyId}/generations/{generationId}

GET https://dev.zanhosting.com/ai/stories/{storyId}/generations/{generationId}

オペレーション ID ai.stories.storyId.generations.generationId.get
アクセス Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. または: An access token the site's ZanAuth issuer minted for its app, or a static key.

パラメータ

名前場所型説明
storyId パス 必須 string (snowflake) The story.
generationId パス 必須 string (snowflake) The run.

レスポンス

ステータス説明スキーマコンテンツタイプ
200 One run of a story as it now stands. StoryGeneration application/json
422 The input was rejected; errors names each failure. ValidationProblem application/json
その他のステータス The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json

200 One run of a story as it now stands.

プロパティ型説明
ai_story_generations_id string (snowflake) 必須
ai_story_generations_status one of: 1, 2, 3, 4, 5 必須
status_label string 必須
under_way boolean 必須 Whether the run is planning or writing; while it is, ask again to see it grow.
ai_story_generations_model_name string 必須
ai_story_generations_plan_markdown string 必須 The outline the story is written from, as Markdown, with every character named; empty until it is planned.
ai_story_generations_plan_reasoning string 必須
ai_story_generations_story_text string 必須
ai_story_generations_story_reasoning string 必須
ai_story_generations_error string, or null 必須
ai_story_generations_created_at integer (int64) 必須 Unix seconds.
ai_story_generations_completed_at integer (int64), or null 必須 Unix seconds.
created_at_readable string 必須
stop_url string 必須
remove_url string 必須
download_url string 必須

422 The input was rejected; errors names each failure.

プロパティ型説明
type string 必須 A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.
errors InputErrors 必須 What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

その他のステータス: The request was refused. The problem's type names why, and its detail explains it for people to read.

プロパティ型説明
type string 必須 A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.

例

curl -X GET 'https://dev.zanhosting.com/ai/stories/{storyId}/generations/{generationId}' \
  -H 'Authorization: Bearer <access token>'

すべてのドキュメント

0件のデータベースステートメント · キャッシュからの読み取り 12件 · データベース待機時間 0.0 ms · ピークメモリ 26.0 MiB
public.settingsSELECTキャッシュから
public.mesh_nodesSELECTキャッシュから
public.fqdnsSELECTキャッシュから
public.sitesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから