Skip to main content

generateJson

Generate JSON based on the user's prompt and the expected JSON schema of the response.

This mutation requires the expected response's schema to be passed in as an input argument. The schema must be a valid JSON schema.

Example:

generateJson(
input: AIJsonGenerationInput!
): AIJsonGenerationJob!

Arguments

generateJson.input ● AIJsonGenerationInput! non-null input

Type

AIJsonGenerationJob object