### Create Text2Img Task with LiblibAI Source: https://github.com/alphasnow/liblib/blob/main/README.md Initializes the API with credentials and sends a request to generate an image using the Text2Img endpoint. Ensure you have the correct template UUID and generation parameters. ```go api := liblib.NewAPI("AccessKey", "SecretKey") req := []byte(`{ "templateUuid": "6f7c4652458d4802969f8d089cf5b91f", "generateParams": { "prompt": "filmfotos, Asian portrait,A young woman wearing a green baseball cap,covering one eye with her hand", "steps": 20, "width": 768, "height": 1024, "imgCount": 1, "seed": -1, "restoreFaces": 0, "additionalNetwork": [ { "modelId": "169505112cee468b95d5e4a5db0e5669", "weight": 1.0 } ] } }`) resp, err := api.Generate(liblib.Text2Img, req) fmt.Println(resp, err) // resp.Data.GenerateUuid ``` -------------------------------- ### Query Task Result Status with LiblibAI Source: https://github.com/alphasnow/liblib/blob/main/README.md Initializes the API and sends a request to check the status of a previously generated task using its GenerateUuid. The response contains the generation status. ```go api := liblib.NewAPI("AccessKey", "SecretKey") req := &schema.StatusReq{GenerateUuid: "GenerateUuid"} resp, err := api.Status(req) // resp.Data.GenerateStatus ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.