Docs menu
Create Posts in Different Languages
The same post in another language.
Set output_language. Languages other than English need the AI writer switched on.
Python
import requests
url = "https://gnraisolutions.com/api/v1/create_content"
payload = {
"brand_id": "YOUR_BRAND_ID",
"text": "Three ways to keep your garden green in August",
"media_type": "carousel",
"output_language": "spanish",
}
headers = {"Authorization": "YOUR_API_KEY"}
response = requests.post(url, data=payload, headers=headers)
print(response.json())
# {"post_ids": ["..."], "post_status": "inProgress", "errors": []}The finished post arrives on your webhook, or with Get All Posts.