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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
openapi: 3.1.0
info:
title: Dream Machine API
summary: A RESTful API for interacting with the Dream Machine
description: Generate videos using Dream Machine.
termsOfService: https://lumalabs.ai/legal/tos
contact:
name: Luma AI, Inc.
email: support@lumalabs.ai
url: https://lumalabs.ai
license:
name: Proprietary
url: https://lumalabs.ai/legal/tos
version: 1.1.0
servers:
- url: https://api.lumalabs.ai/dream-machine/v1
security:
- BearerAuth:
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
schemas:
Error:
type: object
description: The error object
properties:
detail:
type: string
description: The error message
example:
detail: 'Invalid API key is provided'
State:
type: string
description: The state of the generation
enum:
- queued
- dreaming
- completed
- failed
example: completed
ListGenerationResponse:
type: object
description: The generations response object
properties:
has_more:
type: boolean
description: Whether there are more generations
count:
type: integer
description: The number of generations returned
limit:
type: integer
description: The limit of the generations requested
offset:
type: integer
description: The offset of the generations requested
generations:
type: array
items:
$ref: '#/components/schemas/Generation'
description: The generations requested
required:
- generations
example:
has_more: false
count: 1
limit: 100
offset: 0
generations:
- id: '123e4567-e89b-12d3-a456-426614174000'
state: 'completed'
failure_reason: null
created_at: '2023-06-01T12:00:00Z'
assets:
video: 'https://example.com/video.mp4'
version: 'v1.6'
request:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
loop: true
keyframes:
frame0:
type: image
url: 'https://example.com/image.jpg'
frame1:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
GenerationReference:
type: object
description: The generation reference object
properties:
type:
type: string
enum:
- generation
default: generation
id:
type: string
format: uuid
description: The ID of the generation
required:
- type
- id
example:
type: generation
id: '123e4567-e89b-12d3-a456-426614174003'
ImageReference:
type: object
description: The image object
properties:
type:
type: string
enum:
- image
default: image
url:
type: string
format: uri
description: The URL of the image
required:
- type
- url
example:
type: image
url: 'https://example.com/image.jpg'
Assets:
type: object
description: The assets of the generation
properties:
video:
type: string
format: uri
description: The URL of the video
image:
type: string
format: uri
description: The URL of the image
progress_video:
type: string
format: uri
description: The URL of the progress video
examples:
- summary: Video
value:
video: 'https://example.com/video.mp4'
- summary: Image
value:
image: 'https://example.com/image.jpg'
AspectRatio:
type: string
enum:
- '1:1'
- '16:9'
- '9:16'
- '4:3'
- '3:4'
- '21:9'
- '9:21'
description: The aspect ratio of the generation
example: '16:9'
default: '16:9'
VideoModel:
type: string
enum:
- ray-2
- ray-flash-2
example: ray-2
description: The video model used for the generation
VideoModelOutputResolution:
anyOf:
- type: string
enum:
- 540p
- 720p
- 1080p
- 4k
- type: string
VideoModelOutputDuration:
anyOf:
- type: string
enum:
- 5s
- 9s
- type: string
Concept:
type: object
description: The concept object
properties:
key:
type: string
description: The key of the concept
required:
- key
GenerationRequest:
type: object
description: The generation request object
properties:
generation_type:
type: string
enum:
- video
default: video
prompt:
type: string
description: The prompt of the generation
aspect_ratio:
$ref: '#/components/schemas/AspectRatio'
description: The aspect ratio of the generation
loop:
type: boolean
description: Whether to loop the video
keyframes:
$ref: '#/components/schemas/Keyframes'
description: The keyframes of the generation
callback_url:
type: string
format: uri
description: The callback URL of the generation, a POST request with Generation object will be sent to the callback URL when the generation is dreaming, completed, or failed
model:
$ref: '#/components/schemas/VideoModel'
description: The model used for the generation
resolution:
$ref: '#/components/schemas/VideoModelOutputResolution'
description: The resolution of the generation
duration:
$ref: '#/components/schemas/VideoModelOutputDuration'
description: The duration of the generation
concepts:
type: array
items:
$ref: '#/components/schemas/Concept'
description: The concepts of the generation
required:
- model
examples:
- summary: Text to video
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
loop: true
- summary: Image to video
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
loop: false
keyframes:
frame0:
type: image
url: 'https://example.com/image.jpg'
- summary: Image to video end frame
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
loop: false
keyframes:
frame1:
type: image
url: 'https://example.com/image.jpg'
- summary: Image to video keyframes
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
keyframes:
frame0:
type: image
url: 'https://example.com/image.jpg'
frame1:
type: image
url: 'https://example.com/image.jpg'
- summary: Extend video
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
loop: true
keyframes:
frame0:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
- summary: Extend video reverse
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
keyframes:
frame1:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
- summary: Interpolate image to video
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
keyframes:
frame0:
type: image
url: 'https://example.com/image.jpg'
frame1:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
- summary: Interpolate video to image
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
keyframes:
frame0:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
frame1:
type: image
url: 'https://example.com/video.mp4'
Media:
type: object
description: The image entity object
properties:
url:
type: string
format: uri
description: The URL of the media
required:
- url
ReframeImageModels:
type: string
enum:
- photon-1
- photon-flash-1
description: The model used for the reframe image
ReframeVideoModels:
type: string
enum:
- ray-2
- ray-flash-2
description: The model used for the reframe video
ReframeImageRequest:
type: object
description: The reframe image generation request object
properties:
generation_type:
type: string
enum:
- reframe_image
default: reframe_image
media:
$ref: '#/components/schemas/Media'
model:
$ref: '#/components/schemas/ReframeImageModels'
description: The model used for the reframe image
prompt:
type: string
description: The prompt of the generation
default: ''
aspect_ratio:
$ref: '#/components/schemas/AspectRatio'
description: The aspect ratio of the generation
grid_position_x:
type: integer
description: The x position of the image in the grid
grid_position_y:
type: integer
description: The y position of the image in the grid
x_start:
type: integer
description: The x start of the crop bounds
x_end:
type: integer
description: The x end of the crop bounds
y_start:
type: integer
description: The y start of the crop bounds
y_end:
type: integer
description: The y end of the crop bounds
resized_width:
type: integer
description: Resized width of source image
resized_height:
type: integer
description: Resized height of source image
format:
$ref: '#/components/schemas/ImageFormat'
description: The format of the image
callback_url:
type: string
format: uri
description: The callback URL of the generation, a POST request with Generation object will be sent to the callback URL when the generation is dreaming, completed, or failed
required:
- media
- aspect_ratio
- model
- generation_type
ModifyVideoModel:
type: string
enum:
- ray-2
- ray-flash-2
description: The model used for the modify video
ModifyVideoMode:
type: string
enum:
- adhere_1
- adhere_2
- adhere_3
- flex_1
- flex_2
- flex_3
- reimagine_1
- reimagine_2
- reimagine_3
description: The mode of the modify video
ModifyVideoRequest:
type: object
description: The modify video generation request object
properties:
generation_type:
type: string
enum:
- modify_video
default: modify_video
media:
$ref: '#/components/schemas/Media'
first_frame:
$ref: '#/components/schemas/Media'
model:
$ref: '#/components/schemas/ModifyVideoModel'
description: The model used for the modify video
mode:
$ref: '#/components/schemas/ModifyVideoMode'
description: The mode of the modify video
prompt:
type: string
description: The prompt of the generation
callback_url:
type: string
format: uri
description: The callback URL of the generation, a POST request with Generation object will be sent to the callback URL when the generation is dreaming, completed, or failed
required:
- media
- model
- mode
- generation_type
ReframeVideoRequest:
type: object
description: The reframe video generation request object
properties:
generation_type:
type: string
enum:
- reframe_video
default: reframe_video
media:
$ref: '#/components/schemas/Media'
first_frame:
$ref: '#/components/schemas/Media'
model:
$ref: '#/components/schemas/ReframeVideoModels'
description: The model used for the reframe video
prompt:
type: string
description: The prompt of the generation
default: ''
aspect_ratio:
$ref: '#/components/schemas/AspectRatio'
description: The aspect ratio of the generation
grid_position_x:
type: integer
description: The x position of the image in the grid
grid_position_y:
type: integer
description: The y position of the image in the grid
x_start:
type: integer
description: The x start of the crop bounds
x_end:
type: integer
description: The x end of the crop bounds
y_start:
type: integer
description: The y start of the crop bounds
y_end:
type: integer
description: The y end of the crop bounds
resized_width:
type: integer
description: Resized width of source video
resized_height:
type: integer
description: Resized height of source video
callback_url:
type: string
format: uri
description: The callback URL of the generation, a POST request with Generation object will be sent to the callback URL when the generation is dreaming, completed, or failed
required:
- media
- aspect_ratio
- model
- generation_type
GenerationType:
type: string
enum:
- video
- image
Generation:
type: object
description: The generation response object
properties:
id:
type: string
format: uuid
description: The ID of the generation
generation_type:
$ref: '#/components/schemas/GenerationType'
description: The type of the generation
default: video
state:
$ref: '#/components/schemas/State'
description: The state of the generation
failure_reason:
type: string
description: The reason for the state of the generation
created_at:
type: string
format: date-time
description: The date and time when the generation was created
assets:
$ref: '#/components/schemas/Assets'
description: The assets of the generation
model:
type: string
description: The model used for the generation
request:
oneOf:
- $ref: '#/components/schemas/GenerationRequest'
- $ref: '#/components/schemas/ImageGenerationRequest'
- $ref: '#/components/schemas/UpscaleVideoGenerationRequest'
- $ref: '#/components/schemas/AudioGenerationRequest'
- $ref: '#/components/schemas/ReframeImageRequest'
- $ref: '#/components/schemas/ReframeVideoRequest'
- $ref: '#/components/schemas/ModifyVideoRequest'
description: The request of the generation
example:
id: '123e4567-e89b-12d3-a456-426614174000'
state: 'completed'
failure_reason: null
created_at: '2023-06-01T12:00:00Z'
assets:
video: 'https://example.com/video.mp4'
model: 'ray-2'
request:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
loop: true
keyframes:
frame0:
type: image
url: 'https://example.com/image.jpg'
frame1:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
Keyframe:
oneOf:
- $ref: '#/components/schemas/GenerationReference'
- $ref: '#/components/schemas/ImageReference'
discriminator:
propertyName: type
mapping:
generation: '#/components/schemas/GenerationReference'
image: '#/components/schemas/ImageReference'
description: A keyframe can be either a Generation reference, an Image, or a Video
examples:
- summary: Generation reference
value:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
- summary: Image reference
value:
type: image
url: 'https://example.com/image.jpg'
Keyframes:
type: object
description: The keyframes of the generation
properties:
frame0:
$ref: '#/components/schemas/Keyframe'
description: The frame 0 of the generation
frame1:
$ref: '#/components/schemas/Keyframe'
description: The frame 1 of the generation
example:
frame0:
type: image
url: 'https://example.com/image.jpg'
frame1:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
Credits:
type: object
description: The credits object
properties:
credit_balance:
type: number
format: float
description: Available credits balance in USD cents
required:
- credit_balance
ImageRef:
type: object
description: The image reference object
properties:
url:
type: string
format: uri
description: The URL of the image reference
weight:
type: number
description: The weight of the image reference
ImageIdentity:
type: object
description: The image identity object
properties:
images:
type: array
items:
type: string
format: uri
description: The URLs of the image identity
ModifyImageRef:
type: object
description: The modify image reference object
properties:
url:
type: string
format: uri
description: The URL of the image reference
weight:
type: number
description: The weight of the modify image reference
ImageModel:
type: string
enum:
- photon-1
- photon-flash-1
default: photon-1
description: The image model used for the generation
ImageFormat:
type: string
enum:
- jpg
- png
default: jpg
description: The format of the image
ImageGenerationRequest:
type: object
description: The image generation request object
properties:
generation_type:
type: string
enum:
- image
default: image
model:
$ref: '#/components/schemas/ImageModel'
description: The model used for the generation
prompt:
type: string
description: The prompt of the generation
aspect_ratio:
$ref: '#/components/schemas/AspectRatio'
description: The aspect ratio of the generation
format:
$ref: '#/components/schemas/ImageFormat'
description: The format of the image
default: jpg
callback_url:
type: string
format: uri
description: The callback URL for the generation
image_ref:
type: array
items:
$ref: '#/components/schemas/ImageRef'
style_ref:
type: array
items:
$ref: '#/components/schemas/ImageRef'
character_ref:
type: object
properties:
identity0:
$ref: '#/components/schemas/ImageIdentity'
modify_image_ref:
$ref: '#/components/schemas/ModifyImageRef'
sync:
type: boolean
description: Create image in synchronous mode and return complated image
default: false
sync_timeout:
type: number
description: The timeout for the synchronous image generation
default: 60
required:
- model
UpscaleVideoGenerationRequest:
type: object
description: The upscale generation request object
properties:
generation_type:
type: string
enum:
- upscale_video
default: upscale_video
resolution:
$ref: '#/components/schemas/VideoModelOutputResolution'
description: The resolution of the upscale
callback_url:
type: string
format: uri
description: The callback URL for the upscale
AudioGenerationRequest:
type: object
description: The audio generation request object
properties:
generation_type:
type: string
enum:
- add_audio
default: add_audio
prompt:
type: string
description: The prompt of the audio
negative_prompt:
type: string
description: The negative prompt of the audio
callback_url:
type: string
format: uri
description: The callback URL for the audio
paths:
/ping:
get:
summary: Ping
description: Check if the API is running
operationId: ping
tags:
- Ping
responses:
'200':
description: API is running
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: The message
example:
message: 'pong'
/generations/video:
post:
summary: Create a generation
description: Initiate a new generation with the provided prompt
operationId: createGeneration
tags:
- Generations
requestBody:
required: true
description: The generation request object
content:
application/json:
schema:
$ref: '#/components/schemas/GenerationRequest'
examples:
default:
value:
prompt: 'A serene lake surrounded by mountains at sunset'
aspect_ratio: '16:9'
loop: true
keyframes:
frame0:
type: image
url: 'https://example.com/image.jpg'
frame1:
type: generation
id: '123e4567-e89b-12d3-a456-426614174000'
responses:
'201':
description: Generation created
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations:
get:
summary: List generations
description: Retrieve a list of generations with optional filtering and sorting
operationId: listGenerations
tags:
- Generations
parameters:
- name: limit
in: query
required: false
schema:
type: integer
default: 100
- name: offset
in: query
required: false
schema:
type: integer
default: 0
responses:
'200':
description: Generations found
content:
application/json:
schema:
$ref: '#/components/schemas/ListGenerationResponse'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations/{id}:
get:
summary: Get a generation
description: Retrieve details of a specific generation by its ID
operationId: getGeneration
tags:
- Generations
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The ID of the generation
responses:
'200':
description: Generation found
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
summary: Delete a generation
description: Remove a specific generation by its ID
operationId: deleteGeneration
tags:
- Generations
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The ID of the generation
responses:
'204':
description: Generation deleted
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations/{id}/upscale:
post:
summary: Upscale a generation
description: Upscale a generation by its ID
operationId: upscaleGeneration
tags:
- Generations
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The ID of the generation
requestBody:
required: true
description: The upscale request object
content:
application/json:
schema:
$ref: '#/components/schemas/UpscaleVideoGenerationRequest'
responses:
'200':
description: Generation upscaled
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations/{id}/audio:
post:
summary: Add audio to a generation
description: Add audio to a generation by its ID
operationId: addAudioToGeneration
tags:
- Generations
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The ID of the generation
requestBody:
required: true
description: The audio generation request object
content:
application/json:
schema:
$ref: '#/components/schemas/AudioGenerationRequest'
responses:
'200':
description: Audio added to generation
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations/concepts/list:
get:
summary: Get concepts
description: Get all possible concepts
operationId: getConcepts
tags:
- Generations
responses:
'200':
description: Concepts found
content:
application/json:
schema:
type: array
items:
type: string
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/credits:
get:
summary: Get credits
description: Get the credits information for the api user
operationId: getCredits
tags:
- Credits
responses:
'200':
description: Credits found
content:
application/json:
schema:
$ref: '#/components/schemas/Credits'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations/image:
post:
summary: Generate an image
description: Generate an image with the provided prompt
operationId: generateImage
tags:
- Generations
- Image
requestBody:
required: true
description: The image generation request object
content:
application/json:
schema:
$ref: '#/components/schemas/ImageGenerationRequest'
responses:
'201':
description: Image generated
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations/image/reframe:
post:
summary: Reframe an image
description: Reframe an image by its ID
operationId: reframeImage
tags:
- Generations
- Image
- Reframe
requestBody:
required: true
description: The reframe image generation request object
content:
application/json:
schema:
$ref: '#/components/schemas/ReframeImageRequest'
responses:
'201':
description: Image reframed
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations/video/reframe:
post:
summary: Reframe a video
description: Reframe a video by its ID
operationId: reframeVideo
tags:
- Generations
- Video
- Reframe
requestBody:
required: true
description: The reframe video generation request object
content:
application/json:
schema:
$ref: '#/components/schemas/ReframeVideoRequest'
responses:
'201':
description: Video reframed
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/generations/video/modify:
post:
summary: Modify a video
description: Modify a video with style transfer and prompt-based editing
operationId: modifyVideo
tags:
- Generations
- Video
- Modify
requestBody:
required: true
description: The modify video generation request object
content:
application/json:
schema:
$ref: '#/components/schemas/ModifyVideoRequest'
responses:
'201':
description: Video modified
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'