ZSky AI - GraphQL Schema

Read-only schema document for the ZSky AI public API. Back to zsky.ai

This page exposes a GraphQL schema document only. ZSky AI's live API speaks REST, documented at /openapi.json and /docs/api/. The schema below is published so GraphQL-tool aggregators (Apollo Studio, Hasura registry, GraphQL Hub) can model ZSky operations using GraphQL types. To actually generate images or video, call the REST endpoints.

Downloads

Schema (SDL)

Loading schema...

Sample query

# Poll a generation job.
query CheckJob {
  jobStatus(genId: "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d") {
    jobId
    status
    queuePosition
    results {
      url
      width
      height
      mimeType
    }
  }
}

Sample mutation

# Submit an image generation job (REST equivalent: POST /api/generate).
mutation MakeImage {
  generateImage(input: {
    prompt: "a phoenix rising over a coral reef at sunrise",
    aspectRatio: SQUARE,
    count: 1
  }) {
    jobId
    status
    pollUrl
  }
}

How to use this schema

1. Import schema.graphql into your GraphQL client (Apollo, Hasura, Postman).
2. Generate typed client bindings (graphql-codegen, Apollo iOS, etc).
3. Translate each operation to the equivalent REST call against
   https://zsky.ai/api - see /openapi.json for the exact mapping.

There is no live GraphQL execution endpoint. ZSky AI is REST-first;
this schema is a discovery aid for GraphQL-native tooling.