Image GenerationAsk AIpost https://playground.com/api/models/external/v1All response images are base64 PNG.Body ParamspromptstringrequiredThe text prompt for the imagenegative_promptstringWhat you don’t want in the imagefilter_modelstringenumrequiredString representing which model to use. If no value is set, our latest model will be used.Playground_v2.5PhotorealismPlayground_v3Allowed:Playground_v2.5PhotorealismPlayground_v3widthint32Defaults to 1024For Playground v3, width and height must be divisible by 32heightint32Defaults to 1024For Playground v3, width and height must be divisible by 32num_inference_stepsint32Defaults to 50The number of iterations to take in the diffusion. Roughly corresponds to the resulting image’s detail and quality. Maximum 150.guidance_scaleint32Default: 3 with Playground_v2, 7 with other models. Scale for the amount of influence the prompt will have on the resulting imageschedulerstringenumDefaults to DPMPP_2M_KRepresenting the scheduler to useDPMPP_2M_KEULER_ADDIMPLMSEULERHEUNDPM2DPM2_ALMSLMS_NIHANTHDPMPP_2MDPMPP_2M_LUDPMPP_2M_SDEDPMPP_2M_SDE_KDPMPP_2M_SDE_LUDPMPP_SDEDPMPP_SDE_KLMS_KShow 18 enum valuesseedint32Defaults to null0 < seed < 2^16. Used to seed the random number generatorinit_imagestringBase64 representation of the initial image for img2img. We support PIL image formats: https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.htmlstrengthstringFor img2img, how much of the image will be reproduced (0 reproduces the init_image, 1 will be entirely new)expand_promptbooleanDefaults to falseUses an LLM to generate a prompt that is more aesthetic, diverse, and interestingtruefalseverify_prompt_safetybooleanDefaults to falseRun a model to verify that the prompt is safe across a number of bases. This may add up to 500ms of latencytruefalseprompt_rejection_topicsarray of stringsA list of topics that should be rejected if the user prompt references / contains. Will be rejected with error code PROMPT_UNSAFE. For example: gambling, brand logosprompt_rejection_topicsADD stringprompt_filterstringenumFilter to apply to the prompt of the image. These do not use a separate image model.cartoonvibrant_glassdreamy_stickersultra_lightingwatercolormacro_realismdelicate_detailradiant_symmetrylush_illustrationsaturated_spaceneon_mechaethereal_low_polywarm_boxcinematiccinematic_warmwastelandflat_paletteominous_escapespielbergroyalisticmasterpiecewall_arthazeblack_and_white_3dcinematic_dimensionsfuturistic_illuminationphotorealisticcinematic_coldcute_low_poly_3dnikon_modeyellow_fogmoody_impressionsportraithypersoniccloseupold-timeyShow 36 enum valuesResponses 200200 400400Updated over 1 year ago