-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathapi.storybird.ai.yaml
48 lines (48 loc) · 1.33 KB
/
api.storybird.ai.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
openapi: 3.0.1
info:
title: Stories
description: Create beautiful, illustrated stories easily.
version: 'v1'
servers:
- url: https://api.storybird.ai
paths:
/api/generate_story:
post:
operationId: generateStory
summary: Initialize story creation on storybird.ai, takes prompt parameter as input
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/getGenerateStoryRequest'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/getGenerateStoryResponse'
components:
schemas:
getGenerateStoryRequest:
type: object
properties:
prompt:
type: string
description: The prompt to generate the story from.
getGenerateStoryResponse:
type: object
properties:
title:
type: string
description: The title of the story.
blurb:
type: string
description: The blurb for the story.
url:
type: string
description: The link to the story.
additionalInformationForAssistant:
type: string
description: The additional information for the assistant to render the response.