# sora2-api ## API Docs - Root > Video [Generate video](https://sora2api.apifox.cn/generate-video-395235466e0.md): Submit a text/image-to-video task, deduct credits, and return taskId. - Root > Video [Check generation result](https://sora2api.apifox.cn/check-generation-result-395235467e0.md): Fetch by taskId in real time and write back to the database. - Root > Credits [Get credits and VIP status](https://sora2api.apifox.cn/get-credits-and-vip-status-395235468e0.md): Query current user's credits and VIP status. ## Schemas - Root [GenerateVideoRequest](https://sora2api.apifox.cn/generatevideorequest-231657857d0.md): - Root [CharacterItem](https://sora2api.apifox.cn/characteritem-231657858d0.md): - Root [GenerateVideoResponse](https://sora2api.apifox.cn/generatevideoresponse-231657859d0.md): - Root [CheckResultRequest](https://sora2api.apifox.cn/checkresultrequest-231657860d0.md): - Root [CheckResultResponse](https://sora2api.apifox.cn/checkresultresponse-231657861d0.md): - Root [CheckResultData](https://sora2api.apifox.cn/checkresultdata-231657862d0.md): - Root [GetCreditsResponse](https://sora2api.apifox.cn/getcreditsresponse-231657863d0.md): - Root [ErrorResponse](https://sora2api.apifox.cn/errorresponse-231657864d0.md):