generate_pins_from_url
Use this when the user wants Tailwind's AI to create Pin drafts in Tailwind from a web page (a blog post, product page, or article URL). Asynchronous and metered: each generation spends the user's plan credits by design tier (approximately 3 for basic, 7 for premium, 1 for no-template/photo-only — resolved server-side), takes 1-3 minutes, and returns a generation id to poll with get_generation_status. Takes an accountId from list_accounts. Once the status is success, the drafts appear in list_posts (status draft) carrying a matching generationId. Calling this again for the same URL while a generation is in flight returns the SAME generation with deduplicated: true and charges nothing — but repeating the call after it completes starts and charges a NEW generation, so poll before retrying. If the user did not say which Pinterest account to use and list_accounts returns more than one, ask the user which account to use before calling this — do not choose for them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The web page to generate Pins from (http/https, max 2048 characters). Query parameters and fragments are ignored — variants of one page count as the same URL. | |
| title | No | Display name for this generation source in the user's Tailwind dashboard (max 256 characters). Defaults to the URL. | |
| keywords | No | Up to 10 keywords to guide the generated Pin copy | |
| accountId | Yes | Numeric Tailwind account ID returned by list_accounts | |
| designTier | No | Design tier for the generated Pins (default: basic). basic = template designs (~3 credits), premium = AI-designed images (~7 credits), no-template = the page's own photos only (~1 credit). Ignored when the URL already has a SmartPin on this account — its stored configuration is reused. | |
| premiumStyle | No | Visual style for premium designs. Required when designTier is "premium"; must be omitted otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| generation | Yes |