Sora doesn’t have an (public) API yet.
Dalle is available, however there is a newer model available that is gpt-image-1.
https://platform.openai.com/docs/models/compare